NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #87 most downloaded on NuGet
OpenTelemetry .NET SDK
Latest stable
1.21.0
Last release 11 days ago
11 Nov 2026
Ships fairly regularly
a new release about every 5 weeks
Nearly every release is documented
notes for 29 of 31 stable releases
4 versions withdrawn
withdrawn after publishing
127 years old
53 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.21.0/RELEASENOTES.md.
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.21.0/RELEASENOTES.md.
For detailed changes see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.21.0/src/OpenTelemetry/CHANGELOG.md.
Release details: 1.21.0
net8.0 and net9.0. The supported
.NET targets are now net10.0, net11.0, net462 and netstandard2.0.ActivitySources from
configuration using the Microsoft.Extensions.Diagnostics tracing APIs
(for example, services.AddTracing(b => b.AddConfiguration(section))).
Activities from sources enabled this way are processed by the OpenTelemetry
TracerProvider registered through AddOpenTelemetry().WithTracing().
This is not supported when targeting net10.0.UnauthorizedAccessException if the retry directory could be changed by
another user. The retry directory must be owned by the current user and must
not be writable by its group or by other users, and each directory and
symbolic link in its path must be owned by the current user or by root and
must not be writable by its group or by other users unless it has the sticky
bit set (such as /tmp). These checks can be disabled by setting
OTEL_DOTNET_EXPERIMENTAL_OTLP_DISK_RETRY_CHECK_PERMISSIONS to false.OTEL_DIAGNOSTICS.json now writes rolling
otel-dotnet-*.log files in the standard entry format instead of a circular
{executable}.{pid}.log file. FileSize is split evenly across two retained
files, FormatMessage is now ignored, and writes are asynchronous and may
drop entries when the bounded queue fills. Sinks configured through
providers, including those enabled through environment variables, override
the JSON configuration with a warning event. The preamble of each file now
includes configuration warnings and a redacted environment snapshot.Activity.StatusDescription
or the otel.status_description tag) exported by the OTLP exporter is now
truncated to the configured span attribute value length limit (for example
OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT) instead of being exported in full.EnvironmentVariableCarrier APIs previously covered by OTEL1005 are now
stable. Carrier snapshots now preserve environment variable names, preventing
extraction from non-normalized aliases and collisions with normalized names,
and follow the platform's case-sensitivity rules.PeriodicExportingMetricReader. Set
PeriodicExportingMetricReaderOptions.MaxExportBatchSize (or the
OTEL_METRIC_EXPORT_MAX_BATCH_SIZE environment variable) to split the metric
points of each collection into batches of at most that many metric points.Sampler.Shutdown and the overridable Sampler.OnShutdown so samplers
can release resources. TracerProvider now calls Shutdown on its sampler
when it is shut down or disposed, and ParentBasedSampler and
AlwaysRecordSampler call Shutdown on the samplers they delegate to.SelfDiagnosticsOptions is now automatically bound from the
OpenTelemetry:SelfDiagnostics configuration section, when present.OpenTelemetryLoggerOptions is now bound from the Logging:OpenTelemetry
configuration section using the configuration binding source generator
instead of reflection, making it fully trim and Native AOT compatible.IHostedLifecycleService.StartingAsync instead of IHostedService.StartAsync
so that telemetry emitted by other hosted services during StartingAsync is
captured.1.45.0.System.Diagnostics.DiagnosticSource dependency to 11.0.0 for
all target frameworks.Accept header negotiation in the Prometheus
exporters.IUtf8SpanFormattable (.NET 10+) are now
formatted directly into the OTLP export buffer instead of through
ToString().MetricReader.Collect() (for example by
MeterProvider.ForceFlush()), the ExportTimeoutMilliseconds of
PeriodicExportingMetricReader and the ExporterTimeoutMilliseconds of
BatchExportProcessor<T> are now made available to the exporter. The OTLP
exporter now cancels an export when the shorter of these timeouts and
OtlpExporterOptions.TimeoutMilliseconds elapses, counting the time taken to
serialize the telemetry, and fixed in-memory retries exceeding the export
timeout when a retried request stalls.byte[]-valued tags and attributes, array-valued tags containing NaN
or infinite values, nested arrays and maps, and arrays of string-valued
key/value pairs being exported incorrectly by the Console, OTLP, Zipkin and
Prometheus exporters. They are now exported as specified (for example
byte[] values are Base64-encoded and arrays and maps are JSON-encoded
instead of being written as a .NET type name).# UNIT line whose unit
is not an underscore-separated suffix of the metric family name, which
caused Prometheus to reject the whole response. The line is now omitted.ScrapeResponseCacheDurationMilliseconds window.ScrapeResponseTimeoutMilliseconds elapses.MetricPoint could lose the measurement or export the same series
twice in a single collection.MetricPoint could export a MetricPoint that was not yet
fully initialized, causing a NullReferenceException when enumerating Tags.OTEL_RESOURCE_ATTRIBUTES values being decoded as form data, which
changed a + to a space. Values are now only percent-decoded.PeriodicExportingMetricReader exporting a collection which was still
in progress after its exporter had been shut down, and not making its final
collection when Shutdown() was called before its background task had
started running on platforms where threading is not available.OTEL_EXPORTER_OTLP_HEADERS (and the Headers option) being decoded
before it was split into headers, so that a percent-encoded , in a value
started a new header and encoded leading or trailing whitespace was removed.grpc-status-details-bin trailers, and it is now ignored when
the status code in the details contradicts the grpc-status of the response.OutOfMemoryException thrown while converting an attribute value to a
string is no longer swallowed and the attribute dropped; it now propagates.ArgumentNullException on .NET
Framework.OTEL_RESOURCE_ATTRIBUTES value in the
self-diagnostics environment snapshot when it contained empty entries.Your coding agent can read these notes before it upgrades. Set up the MCP server →
Released 2026-Nov-11
OpenTelemetryLoggerOptions is now bound from the Logging:OpenTelemetry
configuration section using the configuration binding source generator instead
of reflection, making it fully trim and Native AOT compatible. An empty value
for a boolean option is now ignored on all target frameworks rather than
throwing on some, depending on the version of
Microsoft.Extensions.Configuration.Binder in use.
(#8100)
Fixed the self-diagnostics environment snapshot leaving a dangling comma in a
redacted OTEL_RESOURCE_ATTRIBUTES value when it contained empty entries.
(#8104)
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.20.1/RELEASENOTES.md.
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.20.1/RELEASENOTES.md.
For detailed changes see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.20.1/src/OpenTelemetry/CHANGELOG.md.
Release details: 1.20.1
HttpClient instances created directly by the OTLP
exporter no longer follow HTTP redirects. A 3xx response is now treated as
a failed export. See the OTLP exporter README to prevent an HttpClient
created by IHttpClientFactory from following redirects.Protocol, Endpoint and
Headers. This prevents telemetry stored by one exporter being resent by
another exporter to its own endpoint with its own headers. Telemetry stored on
disk by earlier versions is not resent.OTEL_EXPORTER_OTLP_ENDPOINT (and signal-specific) and
OTEL_EXPORTER_ZIPKIN_ENDPOINT values are no longer written to the
exporter's diagnostic log.OTEL_DIAGNOSTICS.json
or SelfDiagnosticsOptions, are now always created as new files.SelfDiagnosticsOptions sinks are now
truncated to 16,384 characters. Only the first 4 KiB of the body of an
unsuccessful OTLP export response is now read and written to the exporter's
diagnostic log.0700/0600) instead of inheriting the process
umask.TracerProvider.GetTracer caching a new tracer on every call that
passes equal array-valued scope tags.OpenTelemetryLoggerOptions.AddOtlpExporter.Logger.EmitLog ignoring
instrumentation suppression, which could cause recursive exports or deadlocks.NaN value not being reclaimed.LogRecords being returned to the shared pool while still queued for
export when an exporter stops enumerating a single-item or array
Batch<LogRecord> early.SuppressInstrumentationScope.Enter() reference count never being
released when the Activity it was entered for is not recorded. This caused
all later telemetry in that execution context to be suppressed.ToString() (for example
enums, Uri or StringValues) being dropped when the export buffer was
resized while the attribute was being written. For metric data points, the
attribute was also left out of every later export.long or
Guid, share the same built-in hash code.target_info and resource constant labels from later
Prometheus scrape responses, while the MeterProvider is being built.ObservableCounter and ObservableUpDownCounter overflow points
reporting only the last observation instead of the sum of all observations
for each collection.LogRecord.State.For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.20.0/RELEASENOTES.md.
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.20.0/RELEASENOTES.md.
For detailed changes see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.20.0/src/OpenTelemetry/CHANGELOG.md.
Release details: 1.20.0
byte[] attributes longer than the configured attribute value
length limit (for example OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT) are now truncated
to that many bytes instead of being exported in full.OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT and OTEL_LINK_ATTRIBUTE_COUNT_LIMIT
now fall back to OTEL_ATTRIBUTE_COUNT_LIMIT (then the default of 128) when
not set, instead of falling back to OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT.ActivitySource.Tags
are now limited by OTEL_ATTRIBUTE_COUNT_LIMIT instead of
OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT. Only applications that set
OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT to a different value from OTEL_ATTRIBUTE_COUNT_LIMIT
are affected.LoggerProvider's protected
TryCreateLogger(string? name, out Logger? logger) extensibility method has
been replaced by TryCreateLogger(LoggerOptions options, out Logger? logger).OpenTelemetryLoggerOptions.Version and
OpenTelemetryLoggerOptions.SchemaUrl options to set an instrumentation
library version and schema URL applied to logs emitted via the
Microsoft.Extensions.Logging ILogger integration.Logger.SchemaUrl and a LoggerProvider.GetLogger overload accepting
a schema URL parameter using the new LoggerOptions type.ConsoleLogRecordExporter now writes an Instrumentation scope (Logger) section
(Name, Version, and Schema URL) for each exported LogRecord.schema_url on ScopeLogs. Log records
emitted from a Logger with a schema URL set now populate ScopeLogs.schema_url
in exported OTLP requests.TracerProviderBuilder.ConfigureSampler intended for library authors
who need to influence sampling without overriding a sampler the application
has configured.SuppressInstrumentationScope reference counts leaking between
inherited asynchronous execution contexts.ResourceBuilder.CreateDefault ignoring OTEL_RESOURCE_ATTRIBUTES and
OTEL_SERVICE_NAME environment variables when the host IConfiguration does
not contain those settings.LogRecord.CategoryName resetting the current Logger's Version to
null when set to a new value.Logger scopes keyed by instrumentation to
avoid unbounded growth.MeterProvider and its IServiceProvider being kept alive after the
host is disposed when using Microsoft.Extensions.Diagnostics versions prior
to .NET 9.0.BaggagePropagator.Inject on .NET Framework using
lookup tables.OtlpExportProtocol.HttpProtobuf
with IHttpClientFactory integration if the first export of logs happens while
the IServiceProvider is being disposed. The exporter now falls back to the
default HttpClient instead of failing the export.For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.19.1/RELEASENOTES.md.
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.19.1/RELEASENOTES.md.
For detailed changes see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.19.1/src/OpenTelemetry/CHANGELOG.md.
Release details: 1.19.1
NotSupportedException thrown when building a TracerProvider or
MeterProvider with a large number of wildcard source/meter patterns on
net8.0, and a related OutOfMemoryException that could occur when many
such providers were built over the lifetime of a process.For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.19.0/RELEASENOTES.md.
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.19.0/RELEASENOTES.md.
For detailed changes see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.19.0/src/OpenTelemetry/CHANGELOG.md.
Release details: 1.19.0
Resource instances.AlwaysRecordSampler.AddOpenTelemetry extension method for IHostApplicationBuilder. It
registers the OpenTelemetry SDK services and additionally seeds service.name
from IHostEnvironment.ApplicationName and deployment.environment.name from
IHostEnvironment.EnvironmentName as low-priority resource defaults. It also
registers the host's live configuration into DI so that extensions receiving
only IServiceCollection can contribute configuration sources during setup.IEnumerable<KeyValuePair<string, string?>> and IDictionary). These
attributes will be serialized as JSON objects or kvlist, as appropriate.OTEL_EXPORTER_OTLP_CERTIFICATE) for
PEM-encoded certificates that only contain a public key.CircularBufferBuckets so the first delta histogram insertion after a
reset does not result in an unnecessary scale reduction.tracestate header whose member value trimmed to
an empty value that previously threw an IndexOutOfRangeException internally
and could silently truncate the tracestate.params overload.SpanAttributes from an array.For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.18.0/RELEASENOTES.md.
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.18.0/RELEASENOTES.md.
For detailed changes see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.18.0/src/OpenTelemetry/CHANGELOG.md.
Release details: 1.18.0
OtlpExporterOptions.MaxRequestSizeBytes property
to increase the capacity.OtlpExporterOptions.MaxRequestSizeBytes to configure the maximum OTLP
request size limit, as required by the OpenTelemetry specification. The default
is the recommended 64 MiB. A batch whose serialized payload exceeds the limit
is not sent and is dropped in its entirety. The maximum supported value is
256 MiB.OtlpExporterOptions.MaxResponseSizeBytes to configure the maximum size
of a response the exporter will accept, as required by the OpenTelemetry
specification. The default is the recommended 4 MiB. A response exceeding the
limit is discarded and treated as a non-retryable failure.otel.sdk.processor.log.processed and otel.sdk.processor.span.processed
SDK self-observability metrics.ITelemetryHostInitializer interface for applications that do not
support hosted services, such as Blazor, to use to manually initialize the
OpenTelemetry SDK as part of application startup.BatchActivityExportProcessor and SimpleActivityExportProcessor no longer
forward spans to the exporter once Shutdown has been called, and
BatchActivityExportProcessor.Shutdown now waits for in-flight OnEnd calls
to finish enqueueing before flushing.RecordException is called on a span that is not recorded.UseOtlpExporter to respect options configured with
services.Configure<OtlpExporterOptions>(...).RetryInfo.retry_delay) to
a minimum value of 100 milliseconds.HttpCompletionOption.ResponseHeadersRead
for the .NET Framework and .NET Standard targets.uber-trace-id header when targeting
net462 or netstandard2.0.For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.17.0/RELEASENOTES.md.
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.17.0/RELEASENOTES.md.
For detailed changes see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.17.0/src/OpenTelemetry/CHANGELOG.md.
Release details: 1.17.0
ExcludedTagKeys property to MetricStreamConfiguration to support
excluding specific tag keys from metric streams.tracestate key validation to comply with the W3C Trace Context
Level 2 grammar.TraceContextPropagator to normalize empty tracestate header values
to null when extracting trace context.OtlpLogExporter so OtlpExporterOptions.ExportProcessorType and
OtlpExporterOptions.BatchExportProcessorOptions are respected when
LogRecordExportProcessorOptions are not configured.For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.16.0/RELEASENOTES.md.
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.16.0/RELEASENOTES.md.
For detailed changes see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.16.0/src/OpenTelemetry/CHANGELOG.md.
Release details: 1.16.0
BaggagePropagator to correctly follow Key and Value Encoding rules.TraceContextPropagator to deduplicate duplicate tracestate keys.ObservedTimestamp will now be exported for logs in the console exporter.NullReferenceException when exporting OTLP logs if the scope key is
null.OtlpLogExporter integration with IHttpClientFactory.IHttpClientFactory when mTLS is
enabled.Retry-After response headers that specify a date instead of a delay.observed_time_unix_nano will no longer always be identical to time_unix_nano
when using the logs bridge API.Name against the instrument name
syntax.OTEL_BSP_* and OTEL_BLRP_* environment variables.ExemplarReservoir implementations.LoggerProvider to fail to
resolve when one of its dependencies depends on ILogger or ILoggerFactory.For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.15.3/RELEASENOTES.md.
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.15.3/RELEASENOTES.md.
For detailed changes see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.15.3/src/OpenTelemetry/CHANGELOG.md.
Release details: 1.15.3
tracestate parsing to reject keys that do not
begin with a lowercase letter, including keys beginning with digits, to
align with the W3C Trace Context specification.OTEL_DOTNET_EXPERIMENTAL_OTLP_DISK_RETRY_DIRECTORY_PATH
when OTEL_DOTNET_EXPERIMENTAL_OTLP_RETRY=disk is configured.OtlpLogExporter now uses IHttpClientFactory on .NET 8+.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT not being applied.BaggagePropagator to trim optional whitespace (OWS) around =
separators when parsing the baggage header.BaggagePropagator to strip baggage properties from values when
parsing the baggage header.LogRecord.LogLevel to preserve LogLevel.None.OTEL_TRACES_SAMPLER_ARG handling for out-of-range values.Released 2026-Apr-21
Fix resource leak in batch and periodic exporting task workers for Blazor/WASM. (#7069)
Fixed LogRecord.LogLevel to preserve LogLevel.None and handle
unspecified or out-of-range severities without returning invalid enum values.
(#7092)
Fixed OTEL_TRACES_SAMPLER_ARG handling to treat out-of-range, NaN, and
infinite values as invalid and fall back to the default ratio when using
traceidratio and parentbased_traceidratio samplers.
(#7103)
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.15.2/RELEASENOTES.md.
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.15.2/RELEASENOTES.md.
For detailed changes see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.15.2/src/OpenTelemetry/CHANGELOG.md.
Release details: 1.15.2
BatchExportProcessor and
PeriodicExportingMetricReader to enable the OpenTelemetry SDK to work
in single-threaded WebAssembly environments such as Blazor and
Uno Platform.Released 2026-Apr-08
BatchExportProcessor and
PeriodicExportingMetricReader to enable OpenTelemetry to work in
single-threaded WebAssembly environments such as Blazor and Uno Platform.
The implementation automatically detects the WebAssembly runtime and switches
to Task-based workers accordingly; the Thread-based approach remains the
default on all other platforms.
(#6379)For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.15.1/RELEASENOTES.md.
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.15.1/RELEASENOTES.md.
For detailed changes see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.15.1/src/OpenTelemetry/CHANGELOG.md.
Release details: 1.15.1
OpenTelemetry.Api and OpenTelemetry SDK,
including fixes for thread-safety, sampler edge cases, metrics precision,
and observable instrument lifecycle handling.Released 2026-Mar-27
Fixed Tracer.StartSpan() leaving the new span as Activity.Current when
the previous activity was stopped by another thread during span creation.
(#6257)
Fixed OverflowException in TraceIdRatioBasedSampler when trace ID bytes
produced long.MinValue.
(#6928)
Fixed precision issues when using Histogram<float> with custom
HistogramBucketBoundaries.
(#6866)
Fixed a thread-safety issue in LogRecordSharedPool.Rent().
(#6833)
Fixed observable instruments (ObservableCounter, ObservableUpDownCounter, ObservableGauge) continuing to export stale data points after a callback stops reporting a series. (#5950)
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.15.0/RELEASENOTES.md.
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.15.0/RELEASENOTES.md.
For detailed changes see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.15.0/src/OpenTelemetry/CHANGELOG.md.
Release details: 1.15.0
ActivitySource.TelemetrySchemaUrl
and Meter.TelemetrySchemaUrl properties across exporters.OpenTelemetry.Exporter.Zipkin is deprecated and will stop receiving updates
in December 2026. Zipkin already supports OTLP ingestion.
Migrate to OpenTelemetry.Exporter.OpenTelemetryProtocol as stated
in the Deprecating Zipkin Exporter blog post.Released 2026-Jan-21
Added support for the OTEL_SDK_DISABLED environment variable in TracerProvider,
MeterProvider, and LoggerProvider. When OTEL_SDK_DISABLED=true,
the SDK returns no-op implementations for all telemetry signals.
The OTEL_SDK_DISABLED environment variable is only evaluated upon application
startup, later changes have no effect.
(#6568)
Added LowMemory temporality as an option in the OTLP metrics exporter.
(#6648)
Added support for Meter.TelemetrySchemaUrl property.
(#6714)
Improve performance and reduce memory consumption for metrics histograms. (#6715)
Decode value in OTEL_RESOURCE_ATTRIBUTES environment variable.
(#6737)
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.14.0/RELEASENOTES.md.
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.14.0/RELEASENOTES.md.
For detailed changes see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.14.0/src/OpenTelemetry/CHANGELOG.md.
Release details: 1.14.0
net8.0, the package now depends on version
8.0.0 of the Microsoft.Extensions.DependencyInjection.Abstractions,
Microsoft.Extensions.Diagnostics.Abstractions,
Microsoft.Extensions.Hosting.Abstractions and
Microsoft.Extensions.Logging.Configuration NuGet packages.System.Diagnostics.DiagnosticSource dependency to 10.0.0
for all target frameworks.Microsoft.Extensions.* dependencies to 10.0.0
for .NET Framework and .NET Standard..sigstore.json) for digital signatures instead of separate signature
(.sig) and certificate (.pem) files. This requires cosign 3.0 or later
for verification. See the Digital signing
section for updated verification instructions.Released 2025-Nov-12
Breaking Change NuGet packages now use the Sigstore bundle format
(.sigstore.json) for digital signatures instead of separate signature
(.sig) and certificate (.pem) files. This requires cosign 3.0 or later
for verification. See the Digital signing
section for updated verification instructions.
(#6623)
Update to stable versions for .NET 10.0 NuGet packages. (#6667)
Update Microsoft.Extensions.* dependencies to 10.0.0 for .NET Framework
and .NET Standard.
(#6667)
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.13.1/RELEASENOTES.md.
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.13.1/RELEASENOTES.md.
For detailed changes see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.13.1/src/OpenTelemetry/CHANGELOG.md.
Release details: 1.13.1
1.13.0, the digital signature (.dll-keyless.sig) and
certificate (.dll-keyless.pem) files were unintentionally omitted from the
published NuGet packages.net462, netstandard2.0, netstandard2.1, net8.0, net9.0), ensuring
the integrity of DLL verification using Sigstore cosign.Released 2025-Oct-09
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.13.0/RELEASENOTES.md.
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.13.0/RELEASENOTES.md.
For detailed changes see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.13.0/src/OpenTelemetry/CHANGELOG.md.
Release details: 1.13.0
OtlpExportProtocol.Grpc
now set the TE=trailers HTTP request header to improve interoperability.EventName is now exported by default as EventName instead of
logrecord.event.name when specified through ILogger or the experimental
log bridge API.Released 2025-Oct-01
Added a verification to ensure that a MetricReader can only be registered
to a single MeterProvider, as required by the OpenTelemetry specification.
(#6458)
Added FormatMessage configuration option to self-diagnostics feature. When
set to true (default is false), log messages will be formatted by replacing
placeholders with actual parameter values for improved readability.
Example OTEL_DIAGNOSTICS.json:
{
"LogDirectory": ".",
"FileSize": 32768,
"LogLevel": "Warning",
"FormatMessage": true
}
Fixed parsing of OTEL_TRACES_SAMPLER_ARG decimal values to always use .
as the delimiter when using the traceidratio sampler, preventing
locale-specific parsing issues.
(#6444)
Breaking Change: OpenTelemetry.Exporter.OpenTelemetryProtocol now defaults to using OTLP/HTTP instead of OTLP/gRPC when targeting .NET Framework and .…
Release details: 1.12.0
OpenTelemetry.Exporter.OpenTelemetryProtocol now
defaults to using OTLP/HTTP instead of OTLP/gRPC when targeting .NET Framework
and .NET Standard. This change may cause telemetry export to fail unless
appropriate adjustments are made. Explicitly setting OTLP/gRPC may result in a
NotSupportedException unless further configuration is applied. See
#6209 for
full details and mitigation guidance. #6229Released 2025-Mar-04
Released 2025-Mar-04
Fixed a bug preventing OpenTelemetry.Exporter.OpenTelemetryProtocol from exporting telemetry on .NET Framework.
Release details: 1.11.1
OpenTelemetry.Exporter.OpenTelemetryProtocol from
exporting telemetry on .NET Framework.OpenTelemetry.Exporter.OpenTelemetryProtocol no longer depends on the Google.Protobuf, Grpc, or Grpc.Net.Client packages. Serialization and transmissi
Release details: 1.11.0
OpenTelemetry.Exporter.OpenTelemetryProtocol no longer depends on the
Google.Protobuf, Grpc, or Grpc.Net.Client packages. Serialization and
transmission of outgoing data is now performed manually to improve the overall
performance.Released 2025-Jan-15
Meter.Tags will now be considered when resolving the SDK metric to update when measurements are recorded. Meters with the same name and different tags will now lead to unique metrics. (#5982)
Fixed a bug in tracing where TraceState set by a custom Sampler is not
applied when creating propagation-only spans.
(#6058)
Bumped the package versions of System.Diagnostic.DiagnosticSource and other Microsoft.Extensions.* packages to 9.0.0.
Release details: 1.10.0
Bumped the package versions of System.Diagnostic.DiagnosticSource and other
Microsoft.Extensions.* packages to 9.0.0.
Added support for new APIs introduced in System.Diagnostics.DiagnosticSource
9.0.0:
For details see: Explicit bucket histogram aggregation.
ActivitySource.Tags (supported in OtlpExporter & ConsoleExporter)
Experimental features promoted to stable:
CardinalityLimit can now be managed for individual metrics via the View
API. For details see: Changing cardinality limit for a
Metric.
The overflow
attribute
(otel.metric.overflow) behavior is now enabled by default. The
OTEL_DOTNET_EXPERIMENTAL_METRICS_EMIT_OVERFLOW_ATTRIBUTE environment
variable is no longer required. For details see: Cardinality
Limits.
The MetricPoint reclaim behavior is now enabled by default when Delta
aggregation temporality is used. The
OTEL_DOTNET_EXPERIMENTAL_METRICS_RECLAIM_UNUSED_METRIC_POINTS environment
variable is no longer required. For details see: Cardinality
Limits.
Added OpenTelemetrySdk.Create API for configuring OpenTelemetry .NET signals
(logging, tracing, and metrics) via a single builder. This new API simplifies
bootstrap and teardown, and supports cross-cutting extensions targeting
IOpenTelemetryBuilder.
Removed out of support net6.0 target and added net9.0 target.
Released 2024-Nov-12
Promoted the MetricPoint reclaim feature for Delta aggregation temporality from experimental to stable. (#5956)
Previous Behavior:
The SDK maintained a fixed set of MetricPoints which were assigned on a
first-come basis based on the tags. MetricPoint reclaim was an experimental
feature users could opt-into setting the environment variable
OTEL_DOTNET_EXPERIMENTAL_METRICS_RECLAIM_UNUSED_METRIC_POINTS=true.
New Behavior: MetricPoint reclaim is now enabled by default when Delta aggregation temporality is used without the need to set an environment variable. Unused MetricPoints will automatically be reclaimed and reused for future measurements. There is NO ability to revert to the old behavior.
Updated the Microsoft.Extensions.Logging.Configuration and
Microsoft.Extensions.Diagnostics.Abstractions package versions to
9.0.0.
(#5967)
Exemplars are now part of the stable API! For details see: customizing exemplars collection.
Release details: 1.9.0
Exemplars are now part of the stable API! For details see: customizing
exemplars
collection.
WithLogging is now part of the stable API! Logging, Metrics, and Tracing can
now all be configured using the With style and the builders finally have
parity in their APIs.
Fixed an issue in Logging where unwanted objects (processors, exporters, etc.) could be created inside delegates automatically executed by the Options
Released 2024-Apr-17
TracerProvider sampler can now be configured via the OTEL_TRACES_SAMPLER & OTEL_TRACES_SAMPLER_ARG envvars.
Release details: 1.8.0
TracerProvider sampler can now be configured via the OTEL_TRACES_SAMPLER &
OTEL_TRACES_SAMPLER_ARG envvars.
A new UseOtlpExporter cross-cutting extension has been added to register the
OtlpExporter and enable all signals in a single call.
exception.type, exception.message, exception.stacktrace will now
automatically be included by the OtlpLogExporter when logging exceptions.
Previously an experimental environment variable had to be set.
Bumped the package versions of System.Diagnostic.DiagnosticSource and other Microsoft.Extensions.* packages to 8.0.0.
Release details: 1.7.0
Bumped the package versions of System.Diagnostic.DiagnosticSource and other
Microsoft.Extensions.* packages to 8.0.0.
Added net8.0 targets to all the components.
OTLP Exporter
ILogger CategoryName as the instrumentation scope for
logs.Added support for the IMetricsBuilder API.
Added an experimental opt-in metrics feature to reclaim unused MetricPoints which enables a higher number of unique dimension combinations to be emitted. See reclaim unused metric points for more details.
Increased the character limit of the Meter instrument name from 63 to 255.
Released 2023-Sep-05
Increased the character limit of the Meter instrument name from 63 to 255. (#4798)
Update default size for SimpleExemplarReservoir to 1.
(#4803)
Update Metrics SDK to override the default histogram buckets for a set of
well-known histogram metrics from ASP.NET Core and HttpClient runtime. These
histogram metrics which have their Unit as s (second) will have their
default histogram buckets as [ 0, 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10 ].
(#4820)
Fixed a breaking change causing LogRecord.State to be null where it was previously set to a valid value when OpenTelemetryLoggerOptions.ParseStateValu…
Released 2023-Jun-26
Fixed a breaking change causing LogRecord.State to be null where it was
previously set to a valid value when
OpenTelemetryLoggerOptions.ParseStateValues is false and states implement
IReadOnlyList or IEnumerable of KeyValuePair<string, object>s.
(#4609)
Breaking Change Removed the support for parsing TState types passed to
the ILogger.Log<TState> API when ParseStateValues is true and TState
does not implement either IReadOnlyList<KeyValuePair<string, object>> or
IEnumerable<KeyValuePair<string, object>>. This feature was first introduced
in the 1.5.0 stable release with
#4334 and
has been removed because it makes the OpenTelemetry .NET SDK incompatible with
native AOT.
(#4614)
Fixed a bug introduced by #4508 in 1.5.0-rc.1 which caused the "Build" extension to return null when performing chained/fluent calls.
Released 2023-Jun-05
Fixed a bug introduced by
#4508 in
1.5.0-rc.1 which caused the "Build" extension to return null when performing
chained/fluent calls.
(#4529)
Marked Exemplars and related APIs internal as the spec for Exemplars is
not stable yet. This would be added back in the 1.6.* prerelease versions
right after 1.5.0 stable version is released.
(#4533)
Released 2023-Feb-24
Released 2023-Feb-24
Nothing published for this version
Nothing published for this version
Released 2022-Jun-03
Released 2022-Jun-03
Make setter for MetricReaderOptions.PeriodicExportingMetricReaderOptions property public.
Released 2022-Apr-15
MetricReaderOptions.PeriodicExportingMetricReaderOptions
property public.
(#3184)Removed the Temporality setting on MetricReader and replaced it with TemporalityPreference. This is a breaking change. TemporalityPreference is used t…
Released 2022-Apr-12
Temporality setting on MetricReader and replaced it with
TemporalityPreference. This is a breaking change. TemporalityPreference is
used to determine the AggregationTemporality used on a per-instrument kind
basis. Currently, there are two preferences:
Cumulative: Measurements from all instrument kinds are aggregated using
AggregationTemporality.Cumulative.Delta: Measurements from Counter, ObservableCounter, and Histogram
instruments are aggregated using AggregationTemporality.Delta. When
UpDownCounters are supported with DiagnosticSource version 7.0
onwards,
they will be aggregated using AggregationTemporality.Cumulative.
(#3153)ExplicitBucketHistogramConfiguration could be used to
configure metric streams for instruments that are not histograms. Currently,
it is not possible to change the aggregation of an instrument with views. This
may be possible in the future.
(#3126)The PeriodicExportingMetricReader now accepts an ExportIntervalMilliseconds of -1 indicating an infinite export interval period.
Released 2022-Mar-30
PeriodicExportingMetricReader now accepts an
ExportIntervalMilliseconds of -1 indicating an infinite export interval
period.
(#2982)PeriodicExportingMetricReaderOptions.ExportTimeoutMilliseconds
option.
(#3038)MetricReaderType. This enumeration was previously used when
configuring a metric reader with an exporter to configure whether the export
cycle would be periodic or manual (i.e., requiring a explicit call to flush
metrics). This change affects the push-based metric exporters: OTLP, Console,
and InMemory. For these exporters, a manual export cycle can now be achieved
by setting PeriodicExportingMetricReaderOptions.ExportIntervalMilliseconds
to -1.
(#3038)MetricPoint struct which do not mutate state as
readonly
(#3065)Instantiating multiple metric instruments with the same name and also identical in all other respects - same type, description, and unit - result in a
Released 2022-Mar-04
Meter property on OpenTelemetry.Metrics.Metric has been removed. It
now has MeterName and MeterVersion properties.
(#2916)ResourceDetector.
(#2949
#2897)Make MetricPoint of MetricPointAccessor readonly.
Released 2022-Feb-02
MetricPoint of MetricPointAccessor readonly.
(#2736)ObjectDisposedException from the BatchExportProcessor worker
thread.
(#2844)Prevent accessing activity Id before sampler runs in case of legacy activities.
Released 2021-Nov-29
ReadOnlyTagCollection and expose Tags on MetricPoint instead of
Keys+Values
(#2642)MetricPoint and added public methods: GetBucketCounts,
GetExplicitBounds, GetHistogramCount, and GetHistogramSum
(#2657)HistogramMeasurements and added a public method
GetHistogramBuckets instead. Renamed the class HistogramMeasurements to
HistogramBuckets and added an enumerator of type HistogramBucket for
enumerating BucketCounts and ExplicitBounds. Removed GetBucketCounts and
GetExplicitBounds methods from MetricPoint.
(#2664)LongValue, DoubleValue, in favor of their
counterpart public methods GetSumLong, GetSumDouble,
GetGaugeLastValueLong, GetGaugeLastValueDouble.
(#2667)Exception from Observable instrument callbacks does not result in entire metrics being lost.
Released 2021-Oct-08
BatchExportProcessor.OnShutdown will now log the count of dropped telemetry items.
Metrics perf improvements, bug fixes. Replace MetricProcessor with MetricReader.
Released 2021-Sep-13
BatchExportActivityProcessorOptions which supports field value
overriding using OTEL_BSP_SCHEDULE_DELAY, OTEL_BSP_EXPORT_TIMEOUT,
OTEL_BSP_MAX_QUEUE_SIZE, OTEL_BSP_MAX_EXPORT_BATCH_SIZE environmental
variables as defined in the
specification.
(#2219)More Metrics features. All instrument types, push/pull exporters, Delta/Cumulative temporality supported.
Released 2021-Aug-24
ResourceBuilder.CreateDefault has detectors for OTEL_RESOURCE_ATTRIBUTES,
OTEL_SERVICE_NAME environment variables so that explicit
AddEnvironmentVariableDetector call is not needed.
(#2247)ResourceBuilder.AddEnvironmentVariableDetector handles OTEL_SERVICE_NAME
environmental variable.
(#2209)Add basic Metrics support with a single pipeline, and supporting Counter (sync) instrument. Push and Pull exporters are supported.
Released 2021-Jul-12
Released 2021-Jul-12
Moved IDeferredTracerProviderBuilder to API library.
Released 2021-Jun-25
IDeferredTracerProviderBuilder to API library.
(#2058)Released 2021-Jun-09
Released 2021-Jun-09
AddLegacySource() moved out of TracerProviderBuilderExtensions and into public API
Released 2021-May-11
AddLegacySource() moved out of TracerProviderBuilderExtensions and into
public API
(#2019)BatchLogRecordExportProcessor. To make parsing scopes easier the
LogRecord.ForEachScope signature has been changed to receive instances of
LogRecordScope (a new type which implements
IEnumerator<KeyValuePair<string, object>> for accessing scope items)
(#2026)Use AssemblyFileVersionAttribute instead of FileVersionInfo.GetVersionInfo to get the SDK version attribute to ensure that it works when the assembly
Released 2021-Apr-23
AssemblyFileVersionAttribute instead of FileVersionInfo.GetVersionInfo
to get the SDK version attribute to ensure that it works when the assembly is
not loaded directly from a file on disk
(#1908)Removed SuppressScope Increment/Decrement from DiagnosticSourceListeners. (1893)
Released 2021-Mar-19
TracerProviderBuilder.SetErrorStatusOnException which automatically
sets the activity status to Error when exception happened.
(#1858
#1875)ForceFlush to TracerProvider.
(#1837)AddLegacySource which
is used by instrumentation libraries that use DiagnosticSource to get
activities processed without ActivitySourceAdapter.
#1836
#1860ParentBasedSampler behavior.
(#1727)ParentBasedSampler will no longer explicitly consider Activity links.
(#1851)IncludeScopes, IncludeFormattedMessage, & ParseStateValues on
OpenTelemetryLoggerOptions. Added FormattedMessage, StateValues, &
ForEachScope on LogRecord.
(#1869
#1883)SetResourceBuilder support to OpenTelemetryLoggerOptions.
(#1913)IDeferredTracerProviderBuilder and TracerProviderBuilderBase to
support dependency injection through OpenTelemetry.Extensions.Hosting.
(#1889)Released 2021-Feb-10
Released 2021-Feb-10
Nothing published for this version
OpenTelemetry.Extensions.Hosting
OpenTelemetry.Extensions.Hosting
AddInstrumentation<T>, AddProcessor<T>, SetSampler<T>, and
Configure extensions to support dependency injection through the
OpenTelemetry.Extensions.Hosting TracerProviderBuilder.
(#1889)OpenTelemetry.Instrumentation.AspNet
http.url attribute. (#1961)OpenTelemetry.Instrumentation.AspNetCore
AspNetCoreInstrumentationOptions from DI.
(#1997)OpenTelemetry.Instrumentation.GrpcNetClient
OpenTelemetry.Instrumentation.Http
http.url attribute.
(#1961)RecordException to HttpClientInstrumentationOptions and
HttpWebRequestInstrumentationOptions which allows Exception to be reported as
ActivityEvent.AddHttpClientInstrumentation extension method for .NET Framework to
use only use HttpWebRequestInstrumentationOptions
(#1982)OpenTelemetry.Instrumentation.SqlClient
db.system attribute set for usage
during sampling. (#1979)OpenTelemetry.Instrumentation.StackExchangeRedis
db.system attribute set for usage
during sampling. (#1984)OpenTelemetry.Extensions.Hosting
OpenTelemetry.Extensions.Hosting
OpenTelemetry.Instrumentation.AspNet
OpenTelemetry.Instrumentation.AspNetCore
Filter and Enrich are now only called if
activity.IsAllDataRequested is true
(#1899)OpenTelemetry.Instrumentation.GrpcNetClient
OpenTelemetry.Instrumentation.Http
OpenTelemetry.Instrumentation.SqlClient
OpenTelemetry.Instrumentation.StackExchangeRedis
OpenTelemetry.Shims.OpenTracing
….NET Core 3.0+ applications. This required some breaking changes to the OtlpExporterOptions.
OpenTelemetry
ResourceBuilder has been moved from the
OpenTelemetry namespace to the OpenTelemetry.Resources namespace:
AddEnvironmentVariableDetector, AddAttributes, AddService, and
AddTelemetrySdk.
(#1576)Obsolete
attribute. See
#1501
for more information.
(#1611)ActivitySourceAdapter class for root activity if traceid is
overridden by calling SetParentId
(#1355)BatchExportProcessor will now flush any remaining spans left in a Batch
after the export operation has completed.
(#1726)OpenTelemetry.Api
Status (otel.status_code) tag (added on Activity using the SetStatus
extension) will now be set as the UNSET, OK, or ERROR string
representation instead of the 0, 1, or 2 integer representation.
(#1579 &
#1620)Obsolete
attribute. See
#1501
for more information.
(#1611)Status.WithDescription will now ignore the provided description if the
Status.StatusCode is anything other than ERROR.
(#1655)OpenTelemetry.Exporter.Console
AddConsoleExporter extension method for logs moved from
OpenTelemetry.Trace namespace to OpenTelemetry.Logs namespace.
(#1576)
Added ConsoleActivityExporter and ConsoleLogExporter. Refactored
ConsoleExporter to get rid of type specific check in the class
(#1593)
Replaced Debug.WriteLine with Trace.WriteLine to display the logs to the Debug window with Release configuration (#1719)
OpenTelemetry.Exporter.InMemory
AddInMemoryExporter extension method for traces moved from
OpenTelemetry namespace to OpenTelemetry.Trace namespace.
(#1576)AddInMemoryExporter extension method for logs moved from
Microsoft.Extensions.Logging namespace to OpenTelemetry.Logs namespace.
(#1576)OpenTelemetry.Exporter.Jaeger
Changed JaegerExporter class and constructor from internal to public.
(#1612)
In JaegerExporterOptions: Exporter options now include a switch for Batch vs
Simple exporter, and settings for batch exporting properties.
Jaeger will now set the error tag when otel.status_code is set to ERROR.
(#1579 &
#1620)
Jaeger will no longer send the otel.status_code tag if the value is UNSET.
(#1609 &
#1620)
Span Event.Name will now be populated as the event field on Jaeger Logs
instead of message.
(#1609)
JaegerExporter batch format has changed to be compliant with the spec. This
may impact the way spans are displayed in Jaeger UI.
(#1732)
OpenTelemetry.Exporter.OpenTelemetryProtocol
Changed OltpTraceExporter class and constructor from internal to public.
(#1612)
In OtlpExporterOptions.cs: Exporter options now include a switch for
Batch vs Simple exporter, and settings for batch exporting properties.
Introduce a netstandard2.1 build enabling the exporter to use the
gRPC for .NET library instead of the
gRPC for C# library
for .NET Core 3.0+ applications. This required some breaking changes to the
OtlpExporterOptions.
(#1662)
OpenTelemetry.Exporter.Zipkin
Changed ZipkinExporter class and constructor from internal to public.
(#1612)
Zipkin will now set the error tag to the Status.Description value or an
empty string when Status.StatusCode (otel.status_code tag) is set to
ERROR.
(#1579,
#1620, &
#1655)
Zipkin will no longer send the otel.status_code tag if the value is UNSET.
(#1609 &
#1620)
Zipkin bool tag values will now be sent as true/false instead of
True/False.
(#1609)
Span tags will no longer be populated with Resource Attributes. (#1663)
Spans will no longer be held in memory indefinitely when ZipkinExporter
cannot connect to the configured endpoint.
(#1726)
OpenTelemetry.Exporter.ZPages
OpenTelemetry.Extensions.Hosting
OpenTelemetry.Instrumentation.AspNet
OpenTelemetry.Instrumentation.AspNetCore
OpenTelemetry.Instrumentation.GrpcNetClient
OpenTelemetry.Instrumentation.Http
otel.status_description tag will no longer be set to the http status
description/reason phrase for outgoing http spans.
(#1579)
Moved the DiagnosticListener filtering logic from HttpClientInstrumentation ctor to OnStartActivity method of HttpHandlerDiagnosticListener.cs; Updated the logic of OnStartActivity to inject propagation data into Headers for filtered out events as well. (#1707)
OpenTelemetry.Instrumentation.SqlClient
SetStoredProcedureCommandName
and SetTextCommandContent have been renamed to
SetDbStatementForStoredProcedure and SetDbStatementForText. They are now
only available on .NET Core. On .NET Framework they are replaced by a single
SetDbStatement property.RecordException
can be set to instruct the instrumentation to record SqlExceptions as Activity
events.
(#1592)OpenTelemetry.Instrumentation.StackExchangeRedis
OpenTelemetry.Shims.OpenTracing
ScopeManagerShim,
SpanBuilderShim, SpanContextShim, SpanShim.
(#1619)One column per quarter.