Bump OpenTelemetry.Instrumentation.AspNetCore from 1.6.0 to 1.8.1#35
Merged
gokayokutucu merged 1 commit intomainfrom Mar 24, 2026
Conversation
--- updated-dependencies: - dependency-name: OpenTelemetry.Instrumentation.AspNetCore dependency-version: 1.8.1 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated OpenTelemetry.Instrumentation.AspNetCore from 1.6.0 to 1.8.1.
Release notes
Sourced from OpenTelemetry.Instrumentation.AspNetCore's releases.
1.8.1
OpenTelemetry.Instrumentation.AspNetCore
values detected in the query string component of requests are replaced with
the text
Redactedwhen building theurl.querytag. For example,?key1=value1&key2=value2becomes?key1=Redacted&key2=Redacted. You candisable this redaction by setting the environment variable
OTEL_DOTNET_EXPERIMENTAL_ASPNETCORE_DISABLE_URL_QUERY_REDACTIONtotrue.(#5532)
1.8.0
If you're interested in knowing all of the changes that went into 1.8.0 release, please go through the release notes of all the previous pre-release versions for 1.8.0:
Changes in 1.8.0:
OpenTelemetry.Exporter.Console
ActivitySource.Versionproperty.(#5472)
OpenTelemetry.Exporter.OpenTelemetryProtocol
OtlpExporterwill no longer throw an exception (even on .NET Core 3.1)when the
System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupportAppContextswitch is NOT set AND usingOtlpExportProtocol.Grpcto send to an insecure ("http") endpoint.
System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupportis not required to be set when using .NET 5 or newer.
(#5486)
Replaced environment variable
OTEL_DOTNET_EXPERIMENTAL_OTLP_ENABLE_INMEMORY_RETRYwithOTEL_DOTNET_EXPERIMENTAL_OTLP_RETRY.OTEL_DOTNET_EXPERIMENTAL_OTLP_RETRYwhen set to
in_memorywill enable automatic retries in case of transientfailures during data export to an OTLP endpoint.
(#5495)
1.8.0-rc.1
OpenTelemetry
TracerProviders can now have a sampler configured via theOTEL_TRACES_SAMPLERenvironment variable. The supported values are:always_off,always_on,traceidratio,parentbased_always_on,parentbased_always_off, andparentbased_traceidratio. The optionstraceidratioandparentbased_traceidratiomay have the sampler probabilityconfigured via the
OTEL_TRACES_SAMPLER_ARGenvironment variable.For details see: OpenTelemetry Environment Variable
Specification.
(#5448)
OpenTelemetry.Exporter.Prometheus.AspNetCore
Fix serializing scope_info when buffer overflows
(#5407)
Add
target_infoto Prometheus exporters when using OpenMetrics(#5407)
OpenTelemetry.Exporter.Prometheus.HttpListener
Fix serializing scope_info when buffer overflows
(#5407)
Add
target_infoto Prometheus exporters when using OpenMetrics(#5407)
OpenTelemetry.Exporter.Zipkin
otel.library.nameandotel.library.versiontootel.scope.nameandotel.scope.versionrespectively.Old versions of attributes are deprecated, but still exported
for backward compatibility.
(#5473)
1.8.0-beta.1
OpenTelemetry
Throw NotSupportedException when using
SetErrorStatusOnExceptionmethod for Tracing in Mono Runtime and Native AOT environment because the dependentMarshal.GetExceptionPointers()API is not supported on these platforms. (#5374)Fixed an issue where
LogRecord.Attributes(orLogRecord.StateValuesalias) could become out of sync withLogRecord.Stateif either is set directly via the public setters. This was done to further mitigate issues introduced in 1.5.0 causing attributes added using custom processor(s) to be missing after upgrading. For details see:(#5169)Fixed an issue where
SimpleExemplarReservoirwas not resetting internal state for cumulative temporality. (#5230)Fixed an issue causing
LogRecords to be incorrectly reused when wrapping an instance ofBatchLogRecordExportProcessorinside anotherBaseProcessor<LogRecord>which leads to missing or incorrect data during export. (#5255)Experimental (pre-release builds only): Added support for setting
CardinalityLimit(the maximum number of data points allowed for a metric) when configuring a view (applies to individual metrics) and obsoletedMeterProviderBuilderExtensions.SetMaxMetricPointsPerMetricStream(previously applied to all metrics). The default cardinality limit for metrics remains at2000. (#5312, #5328)Updated
LogRecordto keepCategoryNameandLoggerin sync when using the experimental Log Bridge API. #5317Added
OpenTelemetryBuilderSdkExtensionsclass which contains extension methods (ConfigureResource,WithMetrics,WithTracing, and experimentalWithLogging) for theIOpenTelemetryBuilderinterface. (#5265)Added
Microsoft.Extensions.Diagnostics.Abstractionsdependency so that theIOpenTelemetryBuilder.WithMetricsextension method can configure IMetricsListener. (#5265)Experimental (pre-release builds only): The
Exemplar.FilteredTagsproperty now returns aReadOnlyFilteredTagCollectioninstance and theExemplar.LongValueproperty has been added. TheMetricPoint.GetExemplarsmethod has been replaced byMetricPoint.TryGetExemplarswhich outputs aReadOnlyExemplarCollectioninstance. These are breaking changes for metrics exporters which support exemplars. (#5386)Experimental (pre-release builds only): Added support for exemplars when using Base2 Exponential Bucket Histogram Aggregation configured via the View API. (#5396)
Experimental (pre-release builds only): Removed the
ExemplarFilter,AlwaysOffExemplarFilter,AlwaysOnExemplarFilter, andTraceBasedExemplarFilterAPIs. TheMeterProviderBuilder.SetExemplarFilterextension method now accepts anExemplarFilterTypeenumeration (which contains definitions for the supported filter typesAlwaysOff,AlwaysOn, andTraceBased) instead of anExemplarFilterinstance. This was done in response to changes made to the OpenTelemetry Metrics SDK Specification. (#5404)Experimental (pre-release builds only): The
ExemplarFilterused by SDKMeterProviders can now be controlled via theOTEL_METRICS_EXEMPLAR_FILTERenvironment variable. The supported values are:always_off,always_on, andtrace_based. For details see: OpenTelemetry Environment Variable Specification. (#5412)OpenTelemetry.Api.ProviderBuilderExtensions
IOpenTelemetryBuilderinterface to support authoring extensions which can configure multiple OpenTelemetry signals (tracing, metrics, and/or logs). (#5265)OpenTelemetry.Exporter.OpenTelemetryProtocol
Experimental (pre-release builds only): Added
LoggerProviderBuilder.AddOtlpExporterregistration extensions. #5103Removed the
OTEL_DOTNET_EXPERIMENTAL_OTLP_EMIT_EXCEPTION_LOG_ATTRIBUTESenvironment variable, following the stabilization of the exception attributesexception.type,exception.message, andexception.stacktracein the OpenTelemetry Semantic Conventions. These attributes, corresponding toLogRecord.Exception, are now stable and will be automatically included in exports. (#5258)Updated
OtlpLogExporterto setbodyon the data model fromLogRecord.Bodyif{OriginalFormat}attribute is NOT found andFormattedMessageisnull. This is typically the case when using theexperimental Logs Bridge API. (#5268)
Updated
OtlpLogExporterto set instrumentation scope name on the data model fromLogRecord.Logger.NameifLogRecord.CategoryNameisnull. This is typically the case when using the experimental Logs Bridge API. (#5300)URL encoded values in
OTEL_EXPORTER_OTLP_HEADERSare now correctly decoded as it is mandated by the specification. (#5316)Experimental (pre-release builds only): Add support in
OtlpMetricExporterfor emitting exemplars supplied on Counters, Gauges, andExponentialHistograms. (#5397)
Setting
EndpointorHttpClientFactoryproperties onOtlpExporterOptionstonullwill now result in anArgumentNullExceptionbeing thrown. (#5434)Introduced experimental support for automatically retrying export to the otlp endpoint when transient network errors occur. Users can enable this feature by setting
OTEL_DOTNET_EXPERIMENTAL_OTLP_ENABLE_INMEMORY_RETRYenvironment variable to true. (#5435)... (truncated)
1.7.1
1.7.1 (stable instrumentation)
OpenTelemetry.Instrumentation.AspNetCore
Activity.Currentwas different than instance obtained fromIHttpActivityFeature.Activity. (#5136)http.routeattribute was not set on either theActivityorhttp.server.request.durationmetric generated from a request when an exception handling middleware is invoked. One caveat is that this fix does not address the problem for thehttp.server.request.durationmetric when running ASP.NET Core 8. ASP.NET Core 8 contains an equivalent fix which should ship in version 8.0.2 (see: dotnet/aspnetcore#52652). (#5135)net6.0target of this library is loaded into a .NET 7+ process and the instrumentation does not behave as expected. This is an unusual scenario that does not affect users consuming this package normally. This fix is primarily to support the opentelemetry-dotnet-instrumentation project. (#5252)OpenTelemetry.Instrumentation.Http
http.client.request.durationmetric. (#5234)1.7.0-beta.1 (pre-release instrumentation)
OpenTelemetry.Instrumentation.SqlClient
OTEL_SEMCONV_STABILITY_OPT_INenvironment variable which toggled the use of the new conventions for the server, client, and shared network attributes. Now that this suite of attributes are stable, this instrumentation will only emit the new attributes. (#5270)SqlClientInstrumentationOptionstoSqlClientTraceInstrumentationOptions. (#5285)db.statement_typeattribute. This attribute was never a part of the semantic conventions. (#5301)OpenTelemetry.Instrumentation.GrpcNetClient
OpenTelemetry.Instrumentation.Httppackage version1.6.0or greater. This is not a result of a change in theOpenTelemetry.Instrumentation.GrpcNetClientpackage therefore this also affects versions prior to this release. See this issue for details and workaround.OTEL_SEMCONV_STABILITY_OPT_INenvironment variable which toggled the use of the new conventions for the server, client, and shared network attributes. Now that this suite of attributes are stable, this instrumentation will only emit the new attributes. (#5259)GrpcClientInstrumentationOptionstoGrpcClientTraceInstrumentationOptions. (#5272)1.7.0
1.7.0 release for core components
If you're interested in knowing all of the changes that went into
1.7.0release, please go through the Release notes of all the previous pre-release versions for1.7.0.1.7.0-beta.1 release for non-core components
Note: Instrumentation libraries were not included for
1.7.0-beta.1.OpenTelemetry.Shims.OpenTracing
TracerShim(Tracer, TextMapPropagator)constructor. UseTracerShim(TracerProvider)orTracerShim(TracerProvider, TextMapPropagator)constructors. (#4862)1.7.0-rc.1
OpenTelemetry
The
AddServiceResourceBuilderextension method will now generate the sameservice.instance.idfor the lifetime of a process whenautoGenerateServiceInstanceIdistrue. (#4988)Fixed a Metrics SDK bug which led to
ExemplarReservoir.Offeralways being called regardless of whether or not theExemplarFiltersampled the measurement. (#5004) (#5016)Update Metrics SDK to override the default histogram buckets for the followingmetrics from ASP.NET Core and HttpClient runtime:
signalr.server.connection.durationkestrel.connection.durationhttp.client.connection.durationThese histogram metrics which have their
Unitass(second) will have their default histogram buckets as[ 0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 30, 60, 120, 300 ]. (#5008) (#5021)Remove the bucket with value
0for histogram buckets for all metrics from ASP.NET Core and HttpClient. (#5021)Updated
Microsoft.Extensions.Logging.Configurationpackage version to8.0.0. (#5051)Updated
Microsoft.Extensions.Loggingpackage version to8.0.0. (#5051)Revert the default behavior of Metrics SDK for Delta aggregation. It would not reclaim unused Metric Points by default. You can enable the SDK to reclaim unused Metric Points by setting the environment variable
OTEL_DOTNET_EXPERIMENTAL_METRICS_RECLAIM_UNUSED_METRIC_POINTStotruebefore setting up theMeterProvider. (#5052)Update Metrics SDK to override the default histogram buckets for ASP.NET (.NET Framework).
Histogram metrics for the meter name
OpenTelemetry.Instrumentation.AspNetand instrument namehttp.request.server.durationwhich have theirUnitass(second) will have their default histogram buckets as[ 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 ]. (#5063)Added
AddProcessoroverload onOpenTelemetryLoggerOptionswhich exposes the factory pattern(Func<IServiceProvider, BaseProcessor<LogRecord>> implementationFactory). (#4916)Add support for Instrumentation Scope Attributes (i.e Meter Tags), fixing issue #4563. (#5089)
Added the
ILoggingBuilder.UseOpenTelemetryexperimental API extension for registering OpenTelemetryILoggerintegration usingLoggerProviderBuilderwhich supports the full DI (IServiceCollection\IServiceProvider) API surface (mirrors tracing & metrics). (#5072)Changed the
ILoggingBuilderregistration extensions (AddOpenTelemetry&UseOpenTelemetry) to fire the optionalOpenTelemetryLoggerOptionsconfiguration delegate AFTER the "Logging:OpenTelemetry"IConfigurationsection has been applied. (#5072)OpenTelemetry.Api
System.Diagnostics.DiagnosticSourcepackage version to8.0.0. (#5051)OpenTelemetry.Api.ProviderBuilderExtensions
Microsoft.Extensions.DependencyInjection.Abstractionspackage version to8.0.0. (#5051)OpenTelemetry.Exporter.Console
OpenTelemetry.Exporter.OpenTelemetryProtocol
Made
OpenTelemetry.Exporter.OtlpLogExporterpublic. (#4979)Updated the
OpenTelemetryLoggerOptions.AddOtlpExporterextension to retrieveOtlpExporterOptionsandLogRecordExportProcessorOptionsusing theIServiceProvider/ Options API so that they can be controlled viaIConfiguration(similar to metrics and traces). (#4916)... (truncated)
1.7.0-alpha.1
OpenTelemetry
Update
AggregatorStoreto reclaim unused MetricPoints for Delta aggregation temporality. (#4486)Fixed a bug where
TracerProviderBuilderBasewas not invoking theinstrumentationFactorydelegate passed to theprotectedAddInstrumentationmethod. (#4873)Allowed metric instrument names to contain
/characters. (#4882)Breaking Change
[Tracer|Meter|Logger]ProviderBuilder.Buildextension will now throw aNotSupportedExceptionif invoked on a non-SDK builder type. Previously it would returnnull. (#4885)Updated
Microsoft.Extensions.Loggingpackage version to8.0.0-rc.1.23419.4. (#4920, #4933)OpenTelemetry.Api
Fixed a bug which caused
Tracer.StartRootSpanto generate a child span if a trace was running (Activity.Current != null). (#4890)Added a
Tracercache inside ofTracerProviderto prevent repeated calls toGetTracerfrom leaking memory. (#4906)Fix
TraceContextPropagatorby validating the first digit of the hex-encodedtrace-flagsfield of thetraceparentheader. (#4893)OpenTelemetry.Exporter.OpenTelemetryProtocol
Bumped the version of
Google.Protobufused by the project to3.22.5so that consuming applications can be published as NativeAOT successfully. Also, a new performance feature can be used instead of reflection emit, which is not AOT-compatible. Removed the dependency onSystem.Reflection.Emit.Lightweight. (#4859)Added support for
OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMITandOTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT. (#4887)Added ability to export attributes corresponding to
LogRecord.Exceptioni.e.exception.type,exception.messageandexception.stacktrace. These attributes will be exported whenOTEL_DOTNET_EXPERIMENTAL_OTLP_EMIT_EXCEPTION_LOG_ATTRIBUTESenvironment variable will be set totrue.NOTE: These attributes were removed in 1.6.0-rc.1 release in order to support stable release of OTLP Log Exporter. The attributes will now be available via environment variable mentioned above. (#4892)
Added ability to export attributes corresponding to
LogRecord.EventId.Idaslogrecord.event.idandLogRecord.EventId.Nameaslogrecord.event.name. The attributes will be exported whenOTEL_DOTNET_EXPERIMENTAL_OTLP_EMIT_EVENT_LOG_ATTRIBUTESwill be set totrue.NOTE: These attributes were removed in 1.6.0-rc.1 release in order to support stable release of OTLP Log Exporter. The attributes will now be available via environment variable mentioned above. (#4925)
LogRecord.CategoryNamewill now be exported as InstrumentationScopenamefield under ScopeLogs. (#4941)OpenTelemetry.Exporter.Prometheus.AspNetCore
OpenTelemetry.Exporter.Prometheus.HttpListener
OpenTelemetry.Extensions.Hosting
OpenTelemetryBuilder.AddOpenTelemetryextension to INSERT OpenTelemetry services at the beginning of theIServiceCollectionin an attempt to provide a better experience for end users capturing telemetry in hosted services. Note that this does not guarantee that OpenTelemetry services will be initialized while other hosted services start, so it is possible to miss telemetry until OpenTelemetry services are fully initialized. (#4883)Commits viewable in compare view.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)You can disable automated security fix PRs for this repo from the Security Alerts page.