Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(opts ...Option) trace.TracerProvider
NewHandler should be used with go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp.NewHandler.
func NewTransport ¶
func NewTransport(opts ...Option) trace.TracerProvider
NewTransport should be used with go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp.NewTransport. Also use TransportSpanNameFormatter with [otelhttp.WithSpanNameFormatter] for a better span name.
Types ¶
type Option ¶
type Option func(*options)
func WithOperationName ¶
func WithTracerProvider ¶
func WithTracerProvider(tracerProvider trace.TracerProvider) Option
Click to show internal directories.
Click to hide internal directories.