1.6.0-beta.3 of instrumentation libraries
Pre-releaseOpenTelemetry.Instrumentation.AspNetCore
-
Removed the Activity Status Description that was being set during exceptions. Activity Status will continue to be reported as
Error. This is a breaking change.EnrichWithExceptioncan be leveraged
to restore this behavior. (#5025) -
Updated
http.request.methodto match specification guidelines.- For activity, if the method does not belong to one of the known values then the request method will be set on an additional tag
http.request.method.originalandhttp.request.methodwill be set to_OTHER. - For metrics, if the original method does not belong to one of the known values then
http.request.methodonhttp.server.request.durationmetric will be set to_OTHER
http.request.methodis set onhttp.server.request.durationmetric or activity whenOTEL_SEMCONV_STABILITY_OPT_INenvironment variable is set tohttporhttp/dup.
(#5001) - For activity, if the method does not belong to one of the known values then the request method will be set on an additional tag
-
An additional attribute
error.typewill be added to activity andhttp.server.request.durationmetric when the request results in unhandled exception. The attribute value will be set to full name of exception type.
The attribute will only be added whenOTEL_SEMCONV_STABILITY_OPT_INenvironment variable is set tohttporhttp/dup. (#4986) -
Fixed
network.protocol.versionattribute values to match the specification. (#5007) -
Calls to
/metricswill now be included in thehttp.server.request.durationmetric. This change may affect Prometheus pull scenario if the Prometheus server sends request to the scraping endpoint that contains/metricsin path. (#5044) -
Fixes the
http.routeattribute for scenarios in which it was previously missing or incorrect. Additionally, thehttp.routeattribute is now the same for both the metric andActivityemitted for a request
Lastly, theActivity.DisplayNamehas been adjusted to have the format{http.request.method} {http.route}to conform with the specification. There remain scenarios when using conventional routing or Razor pages wherehttp.routeis still incorrect. See #5056 and #5057 for more details. (#5026) -
Removed
network.protocol.namefromhttp.server.request.durationmetric as per spec. (#5049)
OpenTelemetry.Instrumentation.Http
-
Removed the Activity Status Description that was being set during exceptions. Activity Status will continue to be reported as
Error. This is a breaking change.EnrichWithExceptioncan be leveraged to restore this behavior. (#5025) -
Updated
http.request.methodto match specification guidelines.- For activity, if the method does not belong to one of the known values then the request method will be set on an additional tag
http.request.method.originalandhttp.request.methodwill be set to_OTHER. - For metrics, if the original method does not belong to one of the known values then
http.request.methodonhttp.client.request.durationmetric will be set to_OTHER
http.request.methodis set onhttp.client.request.durationmetric or activity whenOTEL_SEMCONV_STABILITY_OPT_INenvironment variable is set tohttporhttp/dup. (#5003) - For activity, if the method does not belong to one of the known values then the request method will be set on an additional tag
-
An additional attribute
error.typewill be added to activity andhttp.client.request.durationmetric in case of failed requests as per the specification.Users moving to
net8.0or newer frameworks from lower versions will see difference in values in case of an exception.net8.0or newer frameworks add the ability to further drill down the exceptions to a specific type through HttpRequestError enum. For lower versions, the individual types will be rolled in to a single type. This could be a breaking change if alerts are set based on the values.The attribute will only be added when
OTEL_SEMCONV_STABILITY_OPT_INenvironment variable is set tohttporhttp/dup. (#5005) (#5034) -
Fixed
network.protocol.versionattribute values to match the specification. (#5006) -
Set
network.protocol.versionvalue using the protocol version on the received response. If the request fails without response, thennetwork.protocol.versionattribute will not be set on Activity andhttp.client.request.durationmetric. (#5043)
OpenTelemetry.Instrumentation.SqlClient
- Updated
Microsoft.Extensions.ConfigurationandMicrosoft.Extensions.Optionspackage version to8.0.0. (#5051)