The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.41.0.
Features
- Add HTTP client integration for distributed tracing via
sentryhttpclientpackage (#876)- Provides an
http.RoundTripperimplementation that automatically creates spans for outgoing HTTP requests - Supports trace propagation targets configuration via
WithTracePropagationTargetsoption - Example usage:
import sentryhttpclient "github.com/getsentry/sentry-go/httpclient" roundTripper := sentryhttpclient.NewSentryRoundTripper(nil) client := &http.Client{ Transport: roundTripper, }
- Provides an
- Add
ClientOptions.PropagateTraceparentoption to control W3Ctraceparentheader propagation in outgoing HTTP requests (#1161) - Add
SpanIDfield to structured logs (#1169)