Skip to content

Commit 548ffa4

Browse files
update change log
1 parent c0a0bf0 commit 548ffa4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

opentelemetry-sdk/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Released 2025-Mar-21
5858

5959
Custom exporters will need to internally synchronize any mutable state, if applicable.
6060

61+
- **Breaking** The `shutdown_with_timeout` method is added to MetricExporter trait. This is breaking change for a custom MetricExporter.
6162
- Bug Fix: `BatchLogProcessor` now correctly calls `shutdown` on the exporter
6263
when its `shutdown` is invoked.
6364

opentelemetry-sdk/src/metrics/exporter.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ pub trait PushMetricExporter: Send + Sync + 'static {
3131
fn shutdown_with_timeout(&self, timeout: Duration) -> OTelSdkResult;
3232

3333
/// Shutdown with the default timeout of 5 seconds.
34-
fn shutdown(&self) -> OTelSdkResult;
34+
fn shutdown(&self) -> OTelSdkResult {
35+
self.shutdown_with_timeout(Duration::from_secs(5))
36+
}
3537

3638
/// Access the [Temporality] of the MetricExporter.
3739
fn temporality(&self) -> Temporality;

0 commit comments

Comments
 (0)