Attach origin of a Db Query to a Span #1419
Labels
area:automatic-instrumentation
Automatic instrumentation managed C# code (Datadog.Trace.ClrProfiler.Managed)
type:new-feature
For a given Trace its really hard to find out where the query is located in the Code. Its even harder to find when an OR Mapper is used like EF Core
So for spans with a Database Query it would be very helpful to see the origin of the query. We imagine something like Filename and Line Number in the Code as Tags on Database Queries.
A similar feature is described here for EF Core: dotnet/efcore#14176
For EF Core there is a Feature thats called TagWith() thats add a given Comment to a Query. But as i know Comments are dropped by datadog.
https://docs.microsoft.com/en-us/ef/core/querying/tags
The text was updated successfully, but these errors were encountered: