Versions in this module Expand all Collapse all v0 v0.4.4 Sep 9, 2021 Changes in this version + func EndUserAttributesFromHTTPRequest(request *http.Request) []otelcore.KeyValue + func HTTPAttributesFromHTTPStatusCode(code int) []otelcore.KeyValue + func HTTPServerAttributesFromHTTPRequest(serverName, route string, request *http.Request) []otelcore.KeyValue + func NetAttributesFromHTTPRequest(network string, request *http.Request) []otelcore.KeyValue + func SpanStatusFromHTTPStatusCode(code int) (codes.Code, string) + type Provider struct + func (p *Provider) Tracer(name string) oteltrace.Tracer + type Span struct + Attributes map[otelcore.Key]otelcore.Value + Kind oteltrace.SpanKind + Name string + ParentSpanID otelcore.SpanID + Status codes.Code + func (ms *Span) AddEvent(ctx context.Context, name string, attrs ...otelcore.KeyValue) + func (ms *Span) AddEventWithTimestamp(ctx context.Context, timestamp time.Time, name string, ...) + func (ms *Span) End(options ...oteltrace.EndOption) + func (ms *Span) IsRecording() bool + func (ms *Span) RecordError(ctx context.Context, err error, opts ...oteltrace.ErrorOption) + func (ms *Span) SetAttributes(attributes ...otelcore.KeyValue) + func (ms *Span) SetName(name string) + func (ms *Span) SetStatus(status codes.Code, msg string) + func (ms *Span) SpanContext() otelcore.SpanContext + func (ms *Span) Tracer() oteltrace.Tracer + type Tracer struct + Name string + OnSpanStarted func(span *Span) + Sampled bool + StartSpanID uint64 + func NewTracer(name string) *Tracer + func (mt *Tracer) EndedSpans() []*Span + func (mt *Tracer) Start(ctx context.Context, name string, o ...oteltrace.StartOption) (context.Context, oteltrace.Span) + func (mt *Tracer) WithSpan(ctx context.Context, name string, body func(context.Context) error, ...) error