Versions in this module Expand all Collapse all v0 v0.0.2 Oct 29, 2024 Changes in this version + const TraceName + func ExtractSpanId(ctx context.Context) string + func ExtractTraceId(ctx context.Context) string + func MetadataFromContext(ctx context.Context) (md metadata.Metadata) + func StartSpanFromMetadata(ctx context.Context, spanName string, md metadata.Metadata, ...) context.Context + type Config struct + Attributes []attribute.KeyValue + Batcher string + Endpoint string + Sampler float64 + type Option interface + func WithAttributes(attributes ...attribute.KeyValue) Option + func WithBatcher(batcher string) Option + func WithEndpoint(endpoint string) Option + func WithName(name string) Option + func WithSampler(sampler float64) Option + type OptionFunc func(*Config) + type Tracer struct + func NewTracer(kind trace.SpanKind, opts ...TracerOption) *Tracer + func (t *Tracer) Extract(ctx context.Context, carrier propagation.TextMapCarrier) context.Context + func (t *Tracer) Inject(ctx context.Context, carrier propagation.TextMapCarrier) + func (t *Tracer) Start(ctx context.Context, spanName string, opts ...trace.SpanStartOption) (context.Context, trace.Span) + type TracerOption func(*tracerOptions) + func WithPropagator(propagator propagation.TextMapPropagator) TracerOption + type Tracing struct + func New(opts ...Option) (*Tracing, error) + func (t *Tracing) Shutdown(ctx context.Context) error