Instrumentation.SqlClient-1.10.0-beta.1
Pre-release-
NuGet: OpenTelemetry.Instrumentation.SqlClient v1.10.0-beta.1
-
Drop support for .NET 6 as this target is no longer supported.
(#2159) -
The new database semantic conventions can be opted in to by setting
theOTEL_SEMCONV_STABILITY_OPT_INenvironment variable. This allows for a
transition period for users to experiment with the new semantic conventions
and adapt as necessary. The environment variable supports the following
values:database- emit the new, frozen (proposed for stable) database
attributes, and stop emitting the old experimental database
attributes that the instrumentation emitted previously.database/dup- emit both the old and the frozen (proposed for stable) database
attributes, allowing for a more seamless transition.- The default behavior (in the absence of one of these values) is to continue
emitting the same database semantic conventions that were emitted in
the previous version. - Note: this option will be be removed after the new database
semantic conventions is marked stable. At which time this
instrumentation can receive a stable release, and the old database
semantic conventions will no longer be supported. Refer to the
specification for more information regarding the new database
semantic conventions for
spans.
(#2229,
#2277,
#2262,
#2279)
-
Breaking change: The
peer.serviceandserver.socket.addressattributes
are no longer emitted. Users should rely on theserver.addressattribute
for the same information. Note thatserver.addressis only included when
theEnableConnectionLevelAttributesoption is enabled.
(#2229) -
Breaking change: When
EnableConnectionLevelAttributesis enabled, the
server.portattribute will now be written as an integer to be compliant with
the semantic conventions.
Previously, it was written as a string.
(#2233) -
The
EnableConnectionLevelAttributesoption is now enabled by default.
(#2249) -
The following attributes are now provided when starting an activity for a database
call:db.system,db.name(old conventions),db.namespace(new conventions),
server.address, andserver.port. These attributes are now available for sampling
decisions.
(#2277) -
Breaking change: The
SetDbStatementForStoredProcedureoption has been removed.
(#2284) -
Add support for metric
db.client.operation.duration
from new database semantic conventions
on .NET 8+.
(#2309) -
Add support for metric
db.client.operation.duration
from new database semantic conventions
on .NET Framework.
(#2311)- Only the following attributes are available when a trace is not captured:
db.system,db.response.status_code, anderror.type
- Only the following attributes are available when a trace is not captured:
-
Updated OpenTelemetry core component version(s) to
1.10.0.
(#2317)
See CHANGELOG for details.
-