Versions in this module Expand all Collapse all v1 v1.0.1 May 19, 2024 Changes in this version + func NewExporter(exporterName, endpoint string, insecure bool) (traceSdk.SpanExporter, error) + func NewOtlpGrpcExporter(ctx context.Context, endpoint string, insecure bool, ...) (traceSdk.SpanExporter, error) + func NewOtlpHttpExporter(ctx context.Context, endpoint string, insecure bool, ...) (traceSdk.SpanExporter, error) + func NewTracerProvider(exporterName, endpoint, serviceName, instanceId, version string, ...) *traceSdk.TracerProvider + func NewZipkinExporter(_ context.Context, endpoint string) (traceSdk.SpanExporter, error) + type Option func(*options) + func WithGlobalPropagator() Option + func WithGlobalTracerProvider() Option + func WithPropagator(propagator propagation.TextMapPropagator) Option + func WithTracerName(tracerName string) Option + func WithTracerProvider(provider trace.TracerProvider) Option + type Tracer struct + func NewTracer(kind trace.SpanKind, spanName string, opts ...Option) *Tracer + func (t *Tracer) End(ctx context.Context, span trace.Span, err error, attrs ...attribute.KeyValue) + func (t *Tracer) Inject(ctx context.Context, carrier propagation.TextMapCarrier) + func (t *Tracer) Start(ctx context.Context, carrier propagation.TextMapCarrier, ...) (context.Context, trace.Span)