otel_trace

package
v1.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Tracer trace.Tracer

Functions

func ParentBasedErrorAwareSampler

func ParentBasedErrorAwareSampler(samplingRate float64) sdktrace.Sampler

ParentBasedErrorAwareSampler 创建父级感知的概率采样器 - 如果父 Span 已采样,则子 Span 也采样 - 如果父 Span 未采样,则子 Span 也不采样 - 如果是根 Span,按 samplingRate 概率采样

func Shutdown

func Shutdown(ctx context.Context)

func Start

func Start(ctx context.Context, name string, opts ...trace.SpanStartOption) (context.Context, trace.Span)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL