OpenTelemetry.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.EnrichWithException
can be leveraged
to restore this behavior. (#5025) -
Updated
http.request.method
to 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.original
andhttp.request.method
will be set to_OTHER
. - For metrics, if the original method does not belong to one of the known values then
http.request.method
onhttp.server.request.duration
metric will be set to_OTHER
http.request.method
is set onhttp.server.request.duration
metric or activity whenOTEL_SEMCONV_STABILITY_OPT_IN
environment variable is set tohttp
orhttp/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.type
will be added to activity andhttp.server.request.duration
metric 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_IN
environment variable is set tohttp
orhttp/dup
. (#4986) -
Fixed
network.protocol.version
attribute values to match the specification. (#5007) -
Calls to
/metrics
will now be included in thehttp.server.request.duration
metric. This change may affect Prometheus pull scenario if the Prometheus server sends request to the scraping endpoint that contains/metrics
in path. (#5044) -
Fixes the
http.route
attribute for scenarios in which it was previously missing or incorrect. Additionally, thehttp.route
attribute is now the same for both the metric andActivity
emitted for a request
Lastly, theActivity.DisplayName
has 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.route
is still incorrect. See #5056 and #5057 for more details. (#5026) -
Removed
network.protocol.name
fromhttp.server.request.duration
metric 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.EnrichWithException
can be leveraged to restore this behavior. (#5025) -
Updated
http.request.method
to 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.original
andhttp.request.method
will be set to_OTHER
. - For metrics, if the original method does not belong to one of the known values then
http.request.method
onhttp.client.request.duration
metric will be set to_OTHER
http.request.method
is set onhttp.client.request.duration
metric or activity whenOTEL_SEMCONV_STABILITY_OPT_IN
environment variable is set tohttp
orhttp/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.type
will be added to activity andhttp.client.request.duration
metric in case of failed requests as per the specification.Users moving to
net8.0
or newer frameworks from lower versions will see difference in values in case of an exception.net8.0
or 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_IN
environment variable is set tohttp
orhttp/dup
. (#5005) (#5034) -
Fixed
network.protocol.version
attribute values to match the specification. (#5006) -
Set
network.protocol.version
value using the protocol version on the received response. If the request fails without response, thennetwork.protocol.version
attribute will not be set on Activity andhttp.client.request.duration
metric. (#5043)
OpenTelemetry.Instrumentation.SqlClient
- Updated
Microsoft.Extensions.Configuration
andMicrosoft.Extensions.Options
package version to8.0.0
. (#5051)