Documentation
¶
Index ¶
- func Context() context.Context
- func ContextWithSpan(ctx context.Context, span trace.Span) context.Context
- func Error(err error, span trace.Span)
- func Gin(ctx *gin.Context) context.Context
- func Init(cfg *config.Config) error
- func NewTracer(traceName string, opts ...trace.TracerOption) trace.Tracer
- func ParseContextTraceId(ctx context.Context) string
- func Tracer() trace.Tracer
- func TracerProvider() *sdktrace.TracerProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseContextTraceId ¶
ParseContextTraceId 从上下文获取 traceId
func TracerProvider ¶
func TracerProvider() *sdktrace.TracerProvider
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.