Versions in this module Expand all Collapse all v1 v1.0.3 Jul 17, 2021 v1.0.1 Jul 17, 2021 Changes in this version + const Context + const Flags + const ParentSpanID + const Sampled + const SpanID + const TraceID + func SetProvider(opts ...Option) + type Annotation struct + Timestamp int64 + Value string + type ClientHandler struct + func (c *ClientHandler) HandleConn(ctx context.Context, cs stats.ConnStats) + func (c *ClientHandler) HandleRPC(ctx context.Context, rs stats.RPCStats) + func (c *ClientHandler) TagConn(ctx context.Context, cti *stats.ConnTagInfo) context.Context + func (c *ClientHandler) TagRPC(ctx context.Context, rti *stats.RPCTagInfo) context.Context + type Endpoint struct + IPv4 string + IPv6 string + Port uint16 + ServiceName string + type Exporter struct + func (e *Exporter) ExportSpans(ctx context.Context, ss []tracesdk.ReadOnlySpan) error + func (e *Exporter) Shutdown(ctx context.Context) error + type Option func(*options) + func WithResource(r *resource.Resource) Option + func WithSampleRatio(sampleRatio float64) Option + func WithTracerExporter(exporter tracesdk.SpanExporter) Option + type Span struct + Annotations []Annotation + Debug bool + Duration int64 + ID string + Kind string + LocalEndpoint *Endpoint + Name string + ParentID string + RemoteEndpoint *Endpoint + Shared bool + Tags map[string]string + Timestamp int64 + TraceID string + type Tracer struct + func NewTracer(kind trace.SpanKind) (*Tracer, error) + func (t *Tracer) End(ctx context.Context, span trace.Span, err error) + func (t *Tracer) Start(ctx context.Context, component string, operation string, ...) (context.Context, trace.Span)