trace

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Context

func Context() context.Context

func ContextWithSpan

func ContextWithSpan(ctx context.Context, span trace.Span) context.Context

func Error

func Error(err error, span trace.Span)

Error sets the error status on the span and adds an event with the error details.

func Gin

func Gin(ctx *gin.Context) context.Context

func Init

func Init(cfg *config.Config) error

func NewTracer

func NewTracer(traceName string, opts ...trace.TracerOption) trace.Tracer

func ParseContextTraceId

func ParseContextTraceId(ctx context.Context) string

ParseContextTraceId 从上下文获取 traceId

func Tracer

func Tracer() trace.Tracer

func TracerProvider

func TracerProvider() *sdktrace.TracerProvider

Types

This section is empty.

Jump to

Keyboard shortcuts

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