Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = config.GetConfig()
Functions ¶
func GetTraceIDFromSpan ¶
func GetTracer ¶
func GetTracer() *sdktrace.TracerProvider
GetTracer returns the globally initialized tracer provider
func NewTracer ¶
func NewTracer() (*sdktrace.TracerProvider, error)
NewTracer initializes the tracer directly
func NewTracingMidleware ¶
func NewTracingMidleware() gin.HandlerFunc
Types ¶
type SpanWrapper ¶
func NewSpanWrapper ¶
func (*SpanWrapper) GetTraceID ¶
func (s *SpanWrapper) GetTraceID() string
func (*SpanWrapper) LogError ¶
func (s *SpanWrapper) LogError(err error)
func (*SpanWrapper) WithStandardAttributes ¶
func (s *SpanWrapper) WithStandardAttributes(ctx context.Context) *SpanWrapper
WithStandardAttributes adds standard attributes like user ID, request ID, etc.
Click to show internal directories.
Click to hide internal directories.