httpclient

package
v0.0.0-...-137323c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 5 Imported by: 0

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
}

func (*SentryRoundTripper) RoundTrip

func (s *SentryRoundTripper) RoundTrip(request *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL