@@ -79,25 +79,6 @@ class TraceSegment {
7979
8080 std::shared_ptr<ConfigManager> config_manager_;
8181
82- // See `doc/sampling-delegation.md` for more information about
83- // `struct SamplingDelegation`.
84- struct SamplingDelegation {
85- // This segment is configured to delegate its sampling decision.
86- bool enabled;
87- // The trace context from which the local root span was extracted delegated
88- // the sampling decision to this segment.
89- bool decision_was_delegated_to_me;
90- // This segment included a request for sampling delegation in outbound
91- // injected trace context (see `inject`).
92- bool sent_request_header;
93- // This segment received a (presumably delegated) sampling decision. See
94- // `read_sampling_delegation_response`.
95- bool received_matching_response_header;
96- // This segment conveyed a sampling decision back to a parent service that
97- // had previously requested a delegated sampling decision.
98- bool sent_response_header;
99- } sampling_delegation_ = {};
100-
10182 public:
10283 TraceSegment (const std::shared_ptr<Logger>& logger,
10384 const std::shared_ptr<Collector>& collector,
@@ -106,8 +87,7 @@ class TraceSegment {
10687 const std::shared_ptr<SpanSampler>& span_sampler,
10788 const std::shared_ptr<const SpanDefaults>& defaults,
10889 const std::shared_ptr<ConfigManager>& config_manager,
109- const RuntimeID& runtime_id, bool sampling_delegation_enabled,
110- bool sampling_decision_was_delegated_to_me,
90+ const RuntimeID& runtime_id,
11191 const std::vector<PropagationStyle>& injection_styles,
11292 const Optional<std::string>& hostname,
11393 Optional<std::string> origin, std::size_t tags_header_max_size,
@@ -131,14 +111,6 @@ class TraceSegment {
131111 bool inject (DictWriter& writer, const SpanData& span,
132112 const InjectionOptions& options);
133113
134- // Inject this segment's trace sampling decision into the specified `writer`,
135- // if appropriate.
136- void write_sampling_delegation_response (DictWriter& writer);
137-
138- // Extract a trace sampling decision from the specified `reader` if it has
139- // one, and use the resulting decision, if appropriate.
140- Expected<void > read_sampling_delegation_response (const DictReader& reader);
141-
142114 // Take ownership of the specified `span`.
143115 void register_span (std::unique_ptr<SpanData> span);
144116 // Increment the number of finished spans. If that number is equal to the
0 commit comments