Documentation ¶
Index ¶
- func CatchError(span trace.Span, err error) error
- func Init(ctx context.Context, opts ...IniterOption) error
- func NewSampler(opts ...SamplerOption) (trace.Sampler, error)
- func RegisterError(span trace.Span, err error)
- func SpanName() string
- func StartNamedSpan(ctx context.Context, opts ...trace.SpanStartOption) (context.Context, trace.Span)
- func StartSpan(ctx context.Context, spanName string, opts ...trace.SpanStartOption) (context.Context, trace.Span)
- func TraceparentFromContext(ctx context.Context) string
- func TraceparentToContext(ctx context.Context, traceparent string) context.Context
- type Config
- type IniterOption
- type SamplerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSampler ¶ added in v0.6.1
func NewSampler(opts ...SamplerOption) (trace.Sampler, error)
func RegisterError ¶
func StartNamedSpan ¶
func TraceparentFromContext ¶
Types ¶
type IniterOption ¶ added in v0.6.1
func WithBatcherOptions ¶ added in v0.6.1
func WithBatcherOptions(opts ...trace.BatchSpanProcessorOption) IniterOption
func WithCmdName ¶ added in v0.6.1
func WithCmdName(cmdName string) IniterOption
func WithExporterOptions ¶ added in v0.6.1
func WithExporterOptions(opts ...otlptracegrpc.Option) IniterOption
func WithSamplerOptions ¶ added in v0.6.1
func WithSamplerOptions(opts ...SamplerOption) IniterOption
type SamplerOption ¶ added in v0.6.1
func WithSampleDuration ¶ added in v0.6.1
func WithSampleDuration(d time.Duration) SamplerOption
func WithSampleError ¶ added in v0.6.1
func WithSampleError(sampleErrors bool) SamplerOption
func WithSampleRatio ¶ added in v0.6.1
func WithSampleRatio(ratio float64) SamplerOption
Click to show internal directories.
Click to hide internal directories.