Skip to content

Commit d2a88ab

Browse files
committed
Update CHANGELOGs, clean up trace/span_processor
1 parent 70edda1 commit d2a88ab

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

opentelemetry-otlp/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## vNext
44

5+
- `OtlpHttpClient.shutdown` `TonicLogsClient.shutdown`, and `TonicTracesClient.shutdown` now explicitly return a result. The
6+
semantics of the method have not changed, but you will have a new lint encouraging you to consume these results.
7+
58
## 0.27.0
69

710
Released 2024-Nov-11

opentelemetry-sdk/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
transparent change.
1010
[#2338](https://github.com/open-telemetry/opentelemetry-rust/pull/2338)
1111
- `ResourceDetector.detect()` no longer supports timeout option.
12+
- The trait functions `LogExporter.shutdown` and `TraceExporter.shutdown` now explicitly return a result. The
13+
semantics of the method have not changed, but you will have a new lint encouraging you to consume these results.
1214

1315
## 0.27.1
1416

opentelemetry-sdk/src/trace/span_processor.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,7 @@ impl SpanProcessor for SimpleSpanProcessor {
149149
}
150150

151151
fn shutdown(&self) -> TraceResult<()> {
152-
if let Ok(mut exporter) = self.exporter.lock() {
153-
exporter.shutdown()?;
154-
Ok(())
155-
} else {
156-
Err(TraceError::Other(
157-
"SimpleSpanProcessor mutex poison at shutdown".into(),
158-
))
159-
}
152+
self.exporter.lock()?.shutdown()
160153
}
161154

162155
fn set_resource(&mut self, resource: &Resource) {

opentelemetry-stdout/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## vNext
44

5+
- `LogExporter.shutdown` and `SpanExporter.shutdown` now explicitly return a result. The
6+
semantics of the method have not changed, but you will have a new lint encouraging you to consume these results.
7+
8+
59
## 0.27.0
610

711
Released 2024-Nov-11

0 commit comments

Comments
 (0)