Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/observability / / SamplingRule

Interface: SamplingRule

Defined in: packages/observability/src/tracer/sampling.ts:28

Per-span-type rate override. Applies on the probabilistic root path AND (W-090) to children of a sampled parent under 'parent-based' - { type: 'tool.execute', rate: 0.01 } thins the per-call spans inside every sampled agent.run trace. A child dropped by its rule breaks the tree below it: its own descendants inherit parentSampled=false.

Stable

Properties

PropertyModifierTypeDefined in
ratereadonlynumberpackages/observability/src/tracer/sampling.ts:30
typereadonlystringpackages/observability/src/tracer/sampling.ts:29