Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContextWithTraceId ¶
GetContextWithTraceId Returns a child context with "trace_id" set to the given traceId
Types ¶
type Instrumentor ¶
type Instrumentor interface { StartSpan(ctx context.Context, operation string) Span NewTransaction(ctx context.Context, txName string, operation string) Span Finish(span Span) }
func NewInstrumentor ¶
func NewInstrumentor() Instrumentor
type NoopSpan ¶
type NoopSpan struct { Operation string TxName string Started bool Finished bool // contains filtered or unexported fields }
func (*NoopSpan) GetOperation ¶
func (*NoopSpan) GetTraceId ¶
func (*NoopSpan) SetTransactionName ¶
type SpanRecorder ¶
type TraceIdContextKey ¶
type TraceIdContextKey string
Click to show internal directories.
Click to hide internal directories.