Documentation
¶
Index ¶
- Constants
- func Format(traceId string) string
- func New() func(ctx context.Context, req *http.Request) tracing.Tracing
- func RequestId() tracelog.RequestIdFunc
- func TextMapPropagator() propagation.TextMapPropagator
- func TracerProviderOptions(ctx context.Context, attrs ...attribute.KeyValue) ([]sdktrace.TracerProviderOption, error)
- func WithIDGenerator() tracing.TracerProviderOption
- func WithLogGroupARNs(logGroupARNs ...string) tracing.KeyValueOption
- func WithLogGroupNames(logGroupNames ...string) tracing.KeyValueOption
- func WithLogStreamARNsKey(logStreamARNs ...string) tracing.KeyValueOption
- func WithLogStreamNames(logStreamNames ...string) tracing.KeyValueOption
- func WithResource(attr ...attribute.KeyValue) tracing.TracerProviderOption
- type TracingContext
Constants ¶
View Source
const ( AwsTraceId = "aws_trace_id" SpanId = "span_id" TraceId = "trace_id" Sampled = "sampled" )
Variables ¶
This section is empty.
Functions ¶
func New ¶ added in v0.2.0
New creates a new tracing context for HTTP requests. tracing.NewFunc is used to create a new tracing context based on the incoming HTTP request.
func RequestId ¶ added in v0.2.0
func RequestId() tracelog.RequestIdFunc
func TextMapPropagator ¶
func TextMapPropagator() propagation.TextMapPropagator
func TracerProviderOptions ¶
func TracerProviderOptions(ctx context.Context, attrs ...attribute.KeyValue) ([]sdktrace.TracerProviderOption, error)
TracerProviderOptions returns a slice of TracerProviderOption for configuring the OpenTelemetry TracerProvider. Deprecated: use tracers.TracerProviderOptions instead.
func WithIDGenerator ¶ added in v0.1.0
func WithIDGenerator() tracing.TracerProviderOption
func WithLogGroupARNs ¶
func WithLogGroupARNs(logGroupARNs ...string) tracing.KeyValueOption
func WithLogGroupNames ¶
func WithLogGroupNames(logGroupNames ...string) tracing.KeyValueOption
func WithLogStreamARNsKey ¶
func WithLogStreamARNsKey(logStreamARNs ...string) tracing.KeyValueOption
func WithLogStreamNames ¶
func WithLogStreamNames(logStreamNames ...string) tracing.KeyValueOption
func WithResource ¶ added in v0.1.0
func WithResource(attr ...attribute.KeyValue) tracing.TracerProviderOption
Types ¶
type TracingContext ¶ added in v0.2.0
func Context ¶ added in v0.2.0
func Context(ctx context.Context) *TracingContext
Click to show internal directories.
Click to hide internal directories.