File tree Expand file tree Collapse file tree
dotnet/src/dotnetcore/Providers/OpenTelemetry/OpenTelemetry Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 <PackageReference Include =" OpenTelemetry.Exporter.Console" Version =" 1.15.3" />
1313 <PackageReference Include =" OpenTelemetry.Exporter.OpenTelemetryProtocol" Version =" 1.15.3" />
1414 <PackageReference Include =" OpenTelemetry.Extensions.Hosting" Version =" 1.15.3" />
15- <PackageReference Include =" OpenTelemetry.Instrumentation.AspNetCore" Version =" 1.8.1 " />
16- <PackageReference Include =" OpenTelemetry.Instrumentation.Http" Version =" 1.8 .1" />
17- <PackageReference Include =" OpenTelemetry.Instrumentation.Runtime" Version =" 1.7.0 " />
18- <PackageReference Include =" OpenTelemetry.Instrumentation.SqlClient" Version =" 1.0.0-rc9.14 " NoWarn =" NU5104" />
15+ <PackageReference Include =" OpenTelemetry.Instrumentation.AspNetCore" Version =" 1.15.2 " />
16+ <PackageReference Include =" OpenTelemetry.Instrumentation.Http" Version =" 1.15 .1" />
17+ <PackageReference Include =" OpenTelemetry.Instrumentation.Runtime" Version =" 1.15.1 " />
18+ <PackageReference Include =" OpenTelemetry.Instrumentation.SqlClient" Version =" 1.15.2 " NoWarn =" NU5104" />
1919 </ItemGroup >
2020
2121 <ItemGroup >
Original file line number Diff line number Diff line change @@ -23,8 +23,11 @@ public static TracerProviderBuilder AddGxAspNetInstrumentation(this TracerProvid
2323 . AddSqlClientInstrumentation ( opt =>
2424 {
2525 opt . RecordException = true ;
26- opt . EnableConnectionLevelAttributes = true ;
27- opt . SetDbStatementForText = true ;
26+ // OpenTelemetry.Instrumentation.SqlClient 1.15+ removed EnableConnectionLevelAttributes
27+ // and SetDbStatementForText. Connection-level attributes and db.statement text are
28+ // now emitted by default following the stable OpenTelemetry semantic conventions
29+ // (gated by OTEL_SEMCONV_STABILITY_OPT_IN at the consumer's runtime if needed).
30+ // For finer control re-enable via EnrichWithSqlCommand and manual Activity tagging.
2831 } ) ;
2932 string envvar = Environment . GetEnvironmentVariable ( "OTEL_TRACES_EXPORTER" ) ;
3033 if ( envvar != null && envvar . Contains ( "console" ) )
You can’t perform that action at this time.
0 commit comments