Versions in this module Expand all Collapse all v1 v1.0.1 Dec 19, 2021 v1.0.0 Dec 19, 2021 Changes in this version + func ExtractSpanContextFromRequest(r *http.Request) opentracing.SpanContext + func Initialize(options ...TracerOptionFunc) (io.Closer, error) + type Info struct + IsSampled bool + OperationName string + ParentID string + SpanID string + TraceID string + type SamplerType string + const ConstantSampler + const ProbabilisticSampler + const RateLimitingSampler + const RemoteSampler + type Span struct + func SpanFromContext(ctx context.Context) *Span + func StartSpanFromContext(ctx context.Context, options ...SpanOptionFunc) (*Span, context.Context) + func StartSpanFromRequest(r *http.Request) (*Span, context.Context) + func (s *Span) HandleError(err error) error + func (s *Span) Info() *Info + func (s *Span) Panic(err interface{}) + func (s *Span) SetError(err error) + func (s *Span) SetHTTPResponseStatus(status int) + func (s *Span) String() string + type SpanOptionFunc func(*SpanOptions) + func WithCustomResource(resource types.NamespacedName) SpanOptionFunc + func WithOperationName(operation string) SpanOptionFunc + type SpanOptions struct + func (o *SpanOptions) Operation() string + type TracerOptionFunc func(*config.Configuration) error + func WithEndpoint(endpoint string) TracerOptionFunc + func WithSamplerParam(samplerParam float64) TracerOptionFunc + func WithSamplerType(samplerType SamplerType) TracerOptionFunc + func WithServiceName(service string) TracerOptionFunc