Documentation ¶
Index ¶
- func ExecutionAttributes(requestID string, req execute.Request) []attribute.KeyValue
- func SpanAttributes(attributes []attribute.KeyValue) []trace.SpanStartOption
- func TraceContext(ctx context.Context, t TraceInfo) context.Context
- func TraceContextFromMessage(ctx context.Context, payload []byte) (context.Context, error)
- func TraceContextWithPropagator(ctx context.Context, propagator propagation.TextMapPropagator, t TraceInfo) context.Context
- type TraceInfo
- type Tracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecutionAttributes ¶
func SpanAttributes ¶
func SpanAttributes(attributes []attribute.KeyValue) []trace.SpanStartOption
func TraceContext ¶
TraceContext injects the trace information into passed context.
func TraceContextFromMessage ¶
TraceContextFromMessage will try to extract TraceInfo from the JSON message.
func TraceContextWithPropagator ¶
func TraceContextWithPropagator(ctx context.Context, propagator propagation.TextMapPropagator, t TraceInfo) context.Context
Types ¶
type TraceInfo ¶
type TraceInfo struct {
Carrier propagation.MapCarrier
}
func GetTraceInfo ¶
GetTraceInfo extracts tracing information from the context.
func GetTraceInfoWithPropagator ¶
func GetTraceInfoWithPropagator(ctx context.Context, propagator propagation.TextMapPropagator) TraceInfo
type Tracer ¶
func NewTracerFromProvider ¶
func NewTracerFromProvider(tp trace.TracerProvider, name string, opts ...trace.TracerOption) *Tracer
func (*Tracer) WithSpanFromContext ¶
Click to show internal directories.
Click to hide internal directories.