Skip to content

Commit cb3e7ec

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 89bb6c3 commit cb3e7ec

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
@@ -1366,7 +1366,7 @@ mod tests {
13661366
}
13671367

13681368
impl SpanExporter for TrackingExporter {
1369-
async fn export(&self, _batch: Vec<SpanData>) -> OTelSdkResult {
1369+
async fn export(&self, _batch: SpanBatch<'_>) -> OTelSdkResult {
13701370
self.export_calls.fetch_add(1, Ordering::SeqCst);
13711371
let inflight = self.active.fetch_add(1, Ordering::SeqCst) + 1;
13721372
self.max_inflight.fetch_max(inflight, Ordering::SeqCst);

0 commit comments

Comments
 (0)