Skip to content

Commit 8a86be3

Browse files
committed
Merge branch 'preallocate-attribute-mem' of github.com:lalitb/opentelemetry-rust into preallocate-attribute-mem
2 parents 877996e + 92d8689 commit 8a86be3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

opentelemetry-sdk/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
- `opentelemetry_sdk::logs::record::LogRecord` and `opentelemetry_sdk::logs::record::TraceContext` derive from `PartialEq` to facilitate Unit Testing.
66
- Fixed an issue causing a panic during shutdown when using the `TokioCurrentThread` tracing batch processor.
7+
[#1964](https://github.com/open-telemetry/opentelemetry-rust/pull/1964)
8+
- Fix BatchSpanProcessor to trigger first export at the first interval
9+
instead of doing it right away.
10+
[#1970](https://github.com/open-telemetry/opentelemetry-rust/pull/1970)
711

812
## v0.24.1
913

opentelemetry-sdk/src/trace/span_processor.rs

+1
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ impl<R: RuntimeChannel> BatchSpanProcessor<R> {
457457
// runtime.spawn()
458458
let ticker = inner_runtime
459459
.interval(config.scheduled_delay)
460+
.skip(1) // The ticker is fired immediately, so we should skip the first one to align with the interval.
460461
.map(|_| BatchMessage::Flush(None));
461462
let timeout_runtime = inner_runtime.clone();
462463

0 commit comments

Comments
 (0)