File tree 4 files changed +10
-8
lines changed
4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## vNext
4
4
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
+
5
8
## 0.27.0
6
9
7
10
Released 2024-Nov-11
Original file line number Diff line number Diff line change 9
9
transparent change.
10
10
[ #2338 ] ( https://github.com/open-telemetry/opentelemetry-rust/pull/2338 )
11
11
- ` 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.
12
14
13
15
## 0.27.1
14
16
Original file line number Diff line number Diff line change @@ -149,14 +149,7 @@ impl SpanProcessor for SimpleSpanProcessor {
149
149
}
150
150
151
151
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 ( )
160
153
}
161
154
162
155
fn set_resource ( & mut self , resource : & Resource ) {
Original file line number Diff line number Diff line change 2
2
3
3
## vNext
4
4
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
+
5
9
## 0.27.0
6
10
7
11
Released 2024-Nov-11
You can’t perform that action at this time.
0 commit comments