telemetry-dotnet-entityframework

star 12

Bật EF Core trace qua OpenTelemetry.Instrumentation.EntityFrameworkCore trong ConfigureTrace. Dùng khi cần span truy vấn DbContext trên pipeline trace.

hoangnh2412 By hoangnh2412 schedule Updated 5/16/2026

name: telemetry-dotnet-entityframework description: Bật EF Core trace qua OpenTelemetry.Instrumentation.EntityFrameworkCore trong ConfigureTrace. Dùng khi cần span truy vấn DbContext trên pipeline trace. dependencies: - OpenTelemetry.Instrumentation.EntityFrameworkCore

EF Core trace

.ConfigureTrace(options =>
{
    options.AddEntityFrameworkCoreInstrumentation(efOptions =>
    {
        efOptions.SetDbStatementForText = true;
        efOptions.SetDbStatementForStoredProcedure = true;
    });
})

Không cần section OTEL riêng — dùng chung OTEL:Tracing OTLP/sampler/filter path.

Install via CLI
npx skills add https://github.com/hoangnh2412/jarvis --skill telemetry-dotnet-entityframework
Repository Details
star Stars 12
call_split Forks 2
navigation Branch main
article Path SKILL.md
More from Creator