Skip to content

Commit 9e013bd

Browse files
committed
document span_sampler_config.h
1 parent 5b77f57 commit 9e013bd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/datadog/span_sampler_config.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#pragma once
22

3+
// This component provides a `struct`, `SpanSamplerConfig`, used to configure
4+
// `SpanSampler`. `SpanSampler` accepts a `FinalizedSpanSamplerConfig`, which
5+
// must be obtained from a call to `finalize_config`.
6+
//
7+
// `SpanSamplerConfig` is specified as the `span_sampler` property of
8+
// `TracerConfig`.
9+
310
#include <optional>
411
#include <vector>
512

@@ -21,6 +28,9 @@ struct SpanSamplerConfig {
2128
Rule() = default;
2229
};
2330

31+
// Can be overriden by the `DD_TRACE_SAMPLING_RULES` environment variable.
32+
// Also, the `DD_TRACE_SAMPLE_RATE` environment variable, if present, causes a
33+
// corresponding `Rule` to be appended to `rules`.
2434
std::vector<Rule> rules;
2535
};
2636

0 commit comments

Comments
 (0)