auapmlogging

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

View Source
const SpanIdLogFieldName = "span.id"
View Source
const TraceIdLogFieldName = "trace.id"
View Source
const TransactionIdLogFieldName = "transaction.id"

Variables

This section is empty.

Functions

func ExtractSpanId

func ExtractSpanId(ctx context.Context) string

ExtractSpanId returns the span.id from the context.

Does nothing if there is no span in the context.

func ExtractTraceId

func ExtractTraceId(ctx context.Context) string

ExtractTraceId returns the trace.id from the TraceContext.

Does nothing if there is no transaction in the context.

func ExtractTransactionId

func ExtractTransactionId(ctx context.Context) string

ExtractTransactionId returns the transaction.id from the TraceContext.

Does nothing if there is no transaction in the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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