Skip to content

Commit 9fcbb76

Browse files
claudiamurialdoBeta Bot
authored andcommitted
Cherry pick branch 'genexuslabs:chore/security-package-updates' into beta
1 parent 23678fd commit 9fcbb76

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

dotnet/src/dotnetcore/Providers/OpenTelemetry/OpenTelemetry/GeneXus.OpenTelemetry.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
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>

dotnet/src/dotnetcore/Providers/OpenTelemetry/OpenTelemetry/GxTraceProviderBuilder.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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"))

0 commit comments

Comments
 (0)