Documentation
¶
Overview ¶
Package otel provides OpenTelemetry instrumentation for the go-github client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Transport)
Option applies configuration to Transport.
func WithMeterProvider ¶
func WithMeterProvider(mp metric.MeterProvider) Option
WithMeterProvider configures the MeterProvider.
func WithTracerProvider ¶
func WithTracerProvider(tp trace.TracerProvider) Option
WithTracerProvider configures the TracerProvider.
type Transport ¶
Transport is an http.RoundTripper that instrument requests with OpenTelemetry.
func NewTransport ¶
func NewTransport(base http.RoundTripper, opts ...Option) *Transport
NewTransport creates a new OpenTelemetry transport.
Click to show internal directories.
Click to hide internal directories.