Skip to content

Commit 7086a66

Browse files
committed
update changelog
1 parent 37d462b commit 7086a66

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

opentelemetry/CHANGELOG.md

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

33
## vNext
44

5+
- **Breaking Change:** Updated the `SpanExporter` trait method signature:
6+
```rust
7+
fn export(&mut self, batch: Vec<SpanData>) -> BoxFuture<'static, OTelSdkResult>;
8+
```
9+
to
10+
```rust
11+
fn export(
12+
&mut self,
13+
batch: Vec<SpanData>,
14+
) -> impl std::future::Future<Output = OTelSdkResult> + Send;
15+
```
16+
This affects the exporter devs, as custom implementations of SpanExporter
17+
should now define export as an `async fn`:
18+
```rust
19+
impl trace::SpanExporter for CustomExporter {
20+
async fn export(&mut self, batch: Vec<trace::SpanData>) -> OTelSdkResult {
21+
// Implementation here
22+
}
23+
}
24+
```
25+
526
## 0.28.0
627

728
Released 2025-Feb-10

0 commit comments

Comments
 (0)