Skip to content

ezgh obs datasets sampling

Trace sampling: which traces a dataset keeps.

Updated View as Markdown
ezgh obs datasets sampling <command>

Trace sampling keeps some of a dataset’s traces and drops the rest, deciding each trace whole after its spans arrive (tail sampling): keep every error and slow trace, say, and 5% of the rest. A dataset’s policy is its rules, tried in order, and a default. Sampling applies to traces only; logs and metrics are kept as they arrive, and span metrics count every span, kept or not. A dataset without a policy, or with one that isn’t enabled, keeps every trace. The dataset is given by environment, ID, slug (dst_…) or name.

Part of ezgh obs datasets.

Flags

This command also takes the global flags.

Subcommands

Command Description
ezgh obs datasets sampling get Show a dataset’s trace sampling policy
ezgh obs datasets sampling set Replace a dataset’s trace sampling policy from a JSON file
ezgh obs datasets sampling stats Show how many traces a dataset’s sampling received and kept
Navigation

Type to search…

↑↓ navigate↵ selectEsc close