Documentation ¶
Overview ¶
Package httpclient provides a tracer implementation for net/http.RoundTripper.
roundTrippper := httpclient.NewSentryRoundTripper(nil, nil) client := &http.Client{ Transport: roundTripper, } request, err := client.Do(request)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSentryRoundTripper ¶
func NewSentryRoundTripper(originalRoundTripper http.RoundTripper, tracePropagationTargets []string, opts ...SentryRoundTripTracerOption) http.RoundTripper
Types ¶
type SentryRoundTripTracerOption ¶
type SentryRoundTripTracerOption func(*SentryRoundTripper)
func WithTag ¶
func WithTag(key, value string) SentryRoundTripTracerOption
func WithTags ¶
func WithTags(tags map[string]string) SentryRoundTripTracerOption
type SentryRoundTripper ¶
type SentryRoundTripper struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.