dotnet / efcore

EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
https://docs.microsoft.com/ef/
MIT License
13.74k stars 3.18k forks source link

Investigate direct support for OpenTelemetry tracing #29281

Open roji opened 2 years ago

roji commented 2 years ago

EF Core currently doesn't support OpenTelemetry, but rather traces via DiagnosticSource.

An OpenTelemetry contrib package exists for instrumenting EF Core to emit activities for command execution (containing a hard-coded translation table for the database name). We should look into providing a more 1st-class support for this.

ben-wilson-mews commented 3 weeks ago

Just adding System.Diagnostics.Activity as a keyword for anyone else searching for a similar issue. Thanks for raising this