chore: 适配 OTEL EF Core 1.14.0-beta.2
This commit is contained in:
@@ -47,11 +47,7 @@ builder.Services.AddOpenTelemetry()
|
||||
.SetSampler(new ParentBasedSampler(new AlwaysOnSampler()))
|
||||
.AddAspNetCoreInstrumentation()
|
||||
.AddHttpClientInstrumentation()
|
||||
.AddEntityFrameworkCoreInstrumentation(options =>
|
||||
{
|
||||
options.SetDbStatementForText = false;
|
||||
options.SetDbStatementForStoredProcedure = false;
|
||||
});
|
||||
.AddEntityFrameworkCoreInstrumentation();
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(otelEndpoint))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user