Skip to content

Commit 0912b84

Browse files
committed
fix: update TrackingExporter test to use SpanBatch API
The batchspanprocessor_sync_ignores_max_concurrent_exports test was added on main after this branch diverged and used the old Vec<SpanData> signature. Updated to use SpanBatch<'_> to match the new trait.
1 parent f89ee15 commit 0912b84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

opentelemetry-sdk/src/trace/span_processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ mod tests {
14181418
}
14191419

14201420
impl SpanExporter for TrackingExporter {
1421-
async fn export(&self, _batch: Vec<SpanData>) -> OTelSdkResult {
1421+
async fn export(&self, _batch: SpanBatch<'_>) -> OTelSdkResult {
14221422
self.export_calls.fetch_add(1, Ordering::SeqCst);
14231423
let inflight = self.active.fetch_add(1, Ordering::SeqCst) + 1;
14241424
self.max_inflight.fetch_max(inflight, Ordering::SeqCst);

0 commit comments

Comments
 (0)