Grafana.OpenTelemetry 1.3.0

Grafana OpenTelemetry distribution for .NET

NuGet SDK Slack

About

This is a pre-configured and pre-packaged bundle of OpenTelemetry .NET components, optimized for Grafana Cloud Application Observability.

It requires only minimal setup and configuration and makes it very easy to emit OpenTelemetry metrics, logs, and traces from your .NET application.

Getting Started

Step 1: Install package

For installing the distribution with the full set of dependencies, add a reference to the Grafana.OpenTelemetry package to your project.

dotnet add package Grafana.OpenTelemetry

Step 2: Enable the Grafana distribution at application startup

The UseGrafana extension method on the TracerProviderBuilder or the MetricProviderBuilder can be used to set up the Grafana distribution. By default, telemetry data will be sent to Grafana Alloy or an OpenTelemetry collector that runs locally and listens to default OTLP ports.

using var tracerProvider = Sdk.CreateTracerProviderBuilder()
    .UseGrafana()
    .Build();

Alternatively, you can send telemetry data directly to Grafana Cloud without involving an agent or collector. This can be configured via the environment variables OTEL_EXPORTER_OTLP_PROTOCOL, OTEL_EXPORTER_OTLP_ENDPOINT, and OTEL_EXPORTER_OTLP_HEADERS.

For details on how to obtain those values, refer to Send data to the Grafana Cloud OTLP endpoint: Quickstart architecture.

Documentation

For detailed documentation and setup instructions, refer to our documentation.

No packages depend on Grafana.OpenTelemetry.

.NET Framework 4.6.2

.NET 8.0

.NET Standard 2.0

Version Downloads Last updated
1.3.0 12 10/24/2025
1.2.0 1 10/24/2025
1.1.0 0 11/15/2024
1.0.1 0 09/19/2024
0.9.0-beta.1 0 07/30/2024
0.8.2-beta.1 0 07/15/2024
0.8.1-beta 0 05/09/2024
0.7.0-beta.4 0 02/28/2024
0.7.0-beta.3 0 01/08/2024
0.7.0-beta.2 0 12/19/2023
0.7.0-beta.1 0 12/19/2023
0.6.0-beta.3 0 11/29/2023
0.6.0-beta.2 0 11/20/2023
0.6.0-beta.1 0 11/09/2023
0.1.1-beta 0 11/01/2023