Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*options)
Option is tracing option.
func WithGlobalPropagator ¶
func WithGlobalPropagator() Option
WithGlobalPropagator set the global TextMapPropagator
func WithGlobalTracerProvider ¶
func WithGlobalTracerProvider() Option
WithGlobalTracerProvider set the registered global trace provider
func WithPropagator ¶
func WithPropagator(propagator propagation.TextMapPropagator) Option
WithPropagator with tracer propagator.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider with tracer provider. By default, it uses the global provider that is set by otel.SetTracerProvider(provider).
type Tracer ¶
type Tracer struct {
// contains filtered or unexported fields
}
Tracer is otel span tracer
func (*Tracer) Inject ¶
func (t *Tracer) Inject(ctx context.Context, carrier propagation.TextMapCarrier)
Inject set cross-cutting concerns from the Context into the carrier.
Click to show internal directories.
Click to hide internal directories.