Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TraceSpanInfo ¶
type TraceSpanInfo struct {
TraceParent string `json:"traceparent"`
}
func ParseTraceHeader ¶
func ParseTraceHeader(headerContent string) (*TraceSpanInfo, error)
ParseTraceHeader parses X-Trace-Span header content
type TracingSetup ¶
type TracingSetup struct {
// contains filtered or unexported fields
}
func NewTracing ¶
func NewTracing(ctx context.Context, endpoint string) (*TracingSetup, error)
NewTracing creates a new tracing setup with OTLP exporter
func (*TracingSetup) ExtractSpanContext ¶
func (ts *TracingSetup) ExtractSpanContext(spanInfo *TraceSpanInfo) (trace.SpanContext, error)
ExtractSpanContext extracts span context from TraceSpanInfo
Click to show internal directories.
Click to hide internal directories.