observability

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MPL-2.0 Imports: 2 Imported by: 0

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 Addon

func Addon() gowdk.Addon

Addon enables generated app trace wiring.

func AlwaysOff

func AlwaysOff() gowdktrace.Sampler

AlwaysOff samples no spans.

func AlwaysOn

func AlwaysOn() gowdktrace.Sampler

AlwaysOn samples every span.

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

func NewCollector(limit int) *Collector

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.

Jump to

Keyboard shortcuts

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