We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c23f647 commit 958830aCopy full SHA for 958830a
data-pipeline-ffi/src/trace_exporter.rs
@@ -247,6 +247,20 @@ pub unsafe extern "C" fn ddog_trace_exporter_config_enable_telemetry(
247
}
248
249
250
+/// Set client-side stats computation status.
251
+#[no_mangle]
252
+pub unsafe extern "C" fn ddog_trace_exporter_config_set_compute_stats(
253
+ config: Option<&mut TraceExporterConfig>,
254
+ is_enabled: bool,
255
+) -> Option<Box<ExporterError>> {
256
+ if let Option::Some(config) = config {
257
+ config.compute_stats = is_enabled;
258
+ None
259
+ } else {
260
+ gen_error!(ErrorCode::InvalidArgument)
261
+ }
262
+}
263
+
264
/// Create a new TraceExporter instance.
265
///
266
/// # Arguments
0 commit comments