Skip to content

Commit 8e351e5

Browse files
mohammadVatandoostlalitbcijothomas
authored
feat: add shutdown with timeout for traces (open-telemetry#2956)
Co-authored-by: Lalit Kumar Bhasin <lalit_fin@yahoo.com> Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
1 parent c5b914b commit 8e351e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

traces.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
Hardware: AMD EPYC 7763 64-Core Processor - 2.44 GHz, 16vCPUs,
99
~10.6 M /sec
1010
*/
11-
1211
use lazy_static::lazy_static;
1312
use opentelemetry::{
1413
trace::{Span, SpanBuilder, Tracer, TracerProvider},
@@ -18,6 +17,7 @@ use opentelemetry_sdk::{
1817
error::OTelSdkResult,
1918
trace::{self as sdktrace, SpanData, SpanProcessor},
2019
};
20+
use std::time::Duration;
2121

2222
mod throughput;
2323

@@ -45,7 +45,7 @@ impl SpanProcessor for NoOpSpanProcessor {
4545
Ok(())
4646
}
4747

48-
fn shutdown(&self) -> OTelSdkResult {
48+
fn shutdown_with_timeout(&self, _timeout: Duration) -> OTelSdkResult {
4949
Ok(())
5050
}
5151
}

0 commit comments

Comments
 (0)