Skip to content

Add Enrich option for OpenTelemetry #4192

@pbiggar

Description

@pbiggar

I'm using the new OpenTelemetry stuff and it's great. It was trivial to add and immediately instrumented my queries. Thanks so much!

However,the traces weren't super useful. Here's an example of how this looks in my tracing provider (this is honeycomb):

image

Every SQL query span is called the name of the DB being accessed. This makes it difficult to understand what's going on at a glance.

I looked in the code, and there doesn't seem to be any configuration ability here.

It seems the standard way to customize an Activity in .NET is to use an Enrich field in the OpenTelemetryOptions. Here is one example, but I believe all the libraries I've seen have this.

The things that I would like to "Enrich" are to change the name of the source (maybe I can do that using DisplayName) and to list some parameters to add as Tags.

Metadata

Metadata

Assignees

No fields configured for Feature.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions