@@ -28,7 +28,6 @@ class Collector;
2828class Logger ;
2929class SpanSampler ;
3030class TraceSampler ;
31- class ErasedTraceSampler ;
3231
3332struct TracerConfig {
3433 // Set the service name.
@@ -81,16 +80,6 @@ struct TracerConfig {
8180 // `telemetry/configuration.h` By default, the telemetry module is enabled.
8281 telemetry::Configuration telemetry;
8382
84- // `apm_tracing_enabled` indicates whether APM traces and APM trace metrics
85- // are enabled. If `false`, APM-specific traces are dropped and APM trace
86- // metrics are not computed. This allows other products (e.g., AppSec) to
87- // operate independently.
88- // This is distinct from `report_traces`, which controls whether any traces
89- // are sent at all.
90- // `apm_tracing_enabled` is overridden by the `DD_APM_TRACING_ENABLED`
91- // environment variable. Defaults to `true`.
92- Optional<bool > apm_tracing_enabled;
93-
9483 // `trace_sampler` configures trace sampling. Trace sampling determines which
9584 // traces are sent to Datadog. See `trace_sampler_config.h`.
9685 TraceSamplerConfig trace_sampler;
@@ -179,6 +168,9 @@ struct TracerConfig {
179168 // / By default, it uses `ThreadedEventScheduler`, which runs tasks on a
180169 // / separate thread.
181170 std::shared_ptr<EventScheduler> event_scheduler;
171+
172+ // / TBD
173+ Optional<bool > apm_tracing_enabled;
182174};
183175
184176// `FinalizedTracerConfig` contains `Tracer` implementation details derived from
@@ -208,7 +200,6 @@ class FinalizedTracerConfig final {
208200 std::shared_ptr<Logger> logger;
209201 bool log_on_startup;
210202 bool generate_128bit_trace_ids;
211- bool apm_tracing_enabled;
212203 Optional<RuntimeID> runtime_id;
213204 Clock clock;
214205 std::string integration_name;
@@ -219,6 +210,7 @@ class FinalizedTracerConfig final {
219210 HTTPClient::URL agent_url;
220211 std::shared_ptr<EventScheduler> event_scheduler;
221212 std::shared_ptr<HTTPClient> http_client;
213+ bool apm_tracing_enabled;
222214};
223215
224216// Return a `FinalizedTracerConfig` from the specified `config` and from any
0 commit comments