Skip to content

Commit efc1ed2

Browse files
anuraagajack-berg
andauthored
Add schema for composite sampler (#390)
* Add schema for composite sampler * all experimental * Fix? * Fix --------- Co-authored-by: Jack Berg <34418638+jack-berg@users.noreply.github.com>
1 parent 2bd1bb8 commit efc1ed2

8 files changed

Lines changed: 540 additions & 6 deletions

examples/kitchen-sink.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -804,8 +804,14 @@ tracer_provider:
804804
# Configure local_parent_sampled sampler.
805805
# If omitted or null, always_on is used.
806806
local_parent_sampled:
807-
# Configure sampler to be always_on.
808-
always_on:
807+
# Configure sampler to be composite.
808+
# This property is experimental and subject to breaking changes in minor versions.
809+
composite/development:
810+
# Configure sampler to be probability.
811+
probability:
812+
# Configure ratio.
813+
# If omitted or null, 1.0 is used.
814+
ratio: 0.001
809815
# Configure local_parent_not_sampled sampler.
810816
# If omitted or null, always_off is used.
811817
local_parent_not_sampled:

0 commit comments

Comments
 (0)