otel

package
v1.90.4 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Unlicense Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	http.Handler
	// contains filtered or unexported fields
}

Handler for otel.

func NewHandler

func NewHandler(tracer Tracer, handler http.Handler) *Handler

NewHandler for otel.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(resp http.ResponseWriter, req *http.Request)

ServeHTTP for otel.

type RoundTripper

type RoundTripper struct {
	http.RoundTripper
	// contains filtered or unexported fields
}

RoundTripper for otel.

func NewRoundTripper

func NewRoundTripper(tracer Tracer, hrt http.RoundTripper) *RoundTripper

NewRoundTripper for otr.

func (*RoundTripper) RoundTrip

func (r *RoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip for otel.

type Tracer

type Tracer trace.Tracer

Tracer for otel.

func NewTracer

func NewTracer(params TracerParams) (Tracer, error)

NewTracer for otel.

type TracerParams

type TracerParams struct {
	fx.In

	Lifecycle fx.Lifecycle
	Config    *otel.Config
	Version   version.Version
}

TracerParams for otel.

Jump to

Keyboard shortcuts

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