Open odannyc opened 3 years ago
@cleptric Is this still on track? I have my own implementation for some things that I often use here https://github.com/aldy505/sentry-integration, most users probably will use the pgx
and http.Client
one. But I don't know if this approach aligns with tracing with otel.
http.Client
would be a good candidate, but we must first ship Tracing without Performance. With the new APIs added here, we can always attach a sentry-trace
and baggage
header, regardless of performance being enabled or not.
Summary
I'd like for sentry-go to provide ways to auto-instrument multiple common integrations. The most common ones are
database/sql
,pq
,http
...Motivation
New Relic, DataDog and other packages that provide tracing already have these helper methods of instrumenting your application. Here is just one example of New Relic giving you ways to instrument the
pq
library: https://github.com/newrelic/go-agent/blob/master/v3/integrations/nrpq/README.mdHere are all the instrumentation helpers that datadog gives you:
https://github.com/DataDog/dd-trace-go/tree/v1/contrib