Documentation
¶
Overview ¶
Package observability declares the optional GOWDK Trace compiler/runtime capability and re-exports dependency-free runtime trace helpers.
Index ¶
Constants ¶
View Source
const ImportPath = "github.com/cssbruno/gowdk/addons/observability"
ImportPath is the canonical Go import path for the observability addon.
Variables ¶
This section is empty.
Functions ¶
func RatioSampler ¶
func RatioSampler(ratio float64) gowdktrace.Sampler
RatioSampler samples a deterministic fraction of traces.
func WithSink ¶
func WithSink(sink gowdktrace.Sink) gowdktrace.TracerOption
WithSink configures the completed span sink.
Types ¶
type Collector ¶
type Collector = gowdktrace.Collector
Collector stores recent spans and serves the self-contained viewer.
func NewCollector ¶
NewCollector creates a bounded in-memory trace collector.
type Tracer ¶
type Tracer = gowdktrace.Tracer
Tracer records spans for generated app instrumentation.
func NewTracer ¶
func NewTracer(options ...gowdktrace.TracerOption) *Tracer
NewTracer creates a dependency-free tracer.
Click to show internal directories.
Click to hide internal directories.