package
0.40.0
Repository: https://github.com/radius-project/radius.git
Documentation: pkg.go.dev

# Functions

ExtractTraceparent extracts the traceparent header from the context.
InitTracer sets up a tracer provider with a sampler and resource attributes, and optionally registers a Zipkin exporter and batcher.
SetAsyncResultStatus sets the status of the span based on the result and adds an exception event if the result contains an error.
StartConsumerSpan creates a new span with SpanKindConsumer for dequeing async operations.
StartCustomSpan creates a new span with the given name, tracer name and attributes and returns a context and the span.
StartProducerSpan creates a new span with SpanKindProducer for enqueuing async operations.
WithTraceparent creates a new context with the given traceparent string.

# Constants

BackendTracerName represents the name of backend tracer name.
FrontendTracerName represents the name of frontend tracer name.

# Structs

Options represents the trace options.
Service implements the hosting.Service interface for the tracer.
ZipkinOptions represents zipkin trace provider options.