Skip to content

Sql for .net framework never calls Enrich #4080

@davhdavh

Description

@davhdavh

Bug Report

https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlEventSourceListener.netfx.cs

It never calls Enrich anywhere.

net462 build.

Symptom

This is valid code in .net framework lib, but it never calls the Enrich method.

                      .AddSqlClientInstrumentation(o => {
                          o.Enrich         = (activity, _, _) => activity.DisplayName = "Sql";
                       })

What is the expected behavior?

Enrich called

What is the actual behavior?

Enrich never called

Reproduce

                      .AddSqlClientInstrumentation(o => {
                          o.Enrich         = (activity, _, _) => activity.DisplayName = "Sql";
                       })

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions