You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The datadog tracing integration overwrites any existing Tracer in the pgx config.
Describe what you expected:
Datadog should wrap any existing tracers it finds, instead of just overwriting them.
For our specific use case, we want to add debug logging for all database queries. In pgx, the way to do that is to add a tracer to the config. Unfortunately, Datadog silently overwrites our custom tracer, so we can't add logging.
The text was updated successfully, but these errors were encountered:
Version of dd-trace-go
Latest version v1.68.0
Describe what happened:
If you take a look at this code, you can see the problem:
https://github.com/DataDog/dd-trace-go/blob/main/contrib/jackc/pgx.v5/pgxpool.go#L24
The datadog tracing integration overwrites any existing Tracer in the pgx config.
Describe what you expected:
Datadog should wrap any existing tracers it finds, instead of just overwriting them.
For our specific use case, we want to add debug logging for all database queries. In pgx, the way to do that is to add a tracer to the config. Unfortunately, Datadog silently overwrites our custom tracer, so we can't add logging.
The text was updated successfully, but these errors were encountered: