Skip to content

Commit

Permalink
refactor(swift): Use BatchSpanProcessor instead of SimpleSpanProcessor
Browse files Browse the repository at this point in the history
  • Loading branch information
pkanal committed Sep 26, 2024
1 parent bda87b4 commit 1e94ed4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/Honeycomb/Honeycomb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import StdoutExporter
//
// * DeterministicSampler.
// * BaggageSpanProcessor.
// * BatchSpanProcessor.
// * LoggingMetricExporter.
// * Debug logging.

Expand Down Expand Up @@ -95,7 +94,7 @@ public class Honeycomb {
} else {
traceExporter
}
let spanProcessor = SimpleSpanProcessor(spanExporter: spanExporter)
let spanProcessor = BatchSpanProcessor(spanExporter: spanExporter)

let tracerProvider = TracerProviderBuilder()
.add(spanProcessor: spanProcessor)
Expand Down

0 comments on commit 1e94ed4

Please sign in to comment.