org.typelevel.otel4s.sdk.trace.processor.BatchSpanProcessor
See theBatchSpanProcessor companion object
Implementation of the SpanProcessor that batches spans exported by the SDK then pushes them to the exporter pipeline .
All spans reported by the SDK implementation are first added to a queue. If the queue is full (with a config.maxQueueSize
maximum size), the incoming spans are dropped.
Spans are exported either when there are config.maxExportBatchSize
pending spans or config.scheduleDelay
has passed since the last export attempt.
Type parameters
F
the higher-kinded type of a polymorphic effect
Attributes
See also
Companion
object
Source
BatchSpanProcessor.scala
Graph
Reset zoom Hide graph Show graph
Supertypes
trait Matchable
class Any
Members list
Processes all pending spans (if any).
Called when a span is ended, if the span.isRecording
returns true .
Called when a span is ended, if the span.isRecording
returns true .
This method is called synchronously on the execution thread, should not throw or block the execution thread.
Value parameters
span
the ended span
Attributes
Source
BatchSpanProcessor.scala
Called when a span is started, if the span.isRecording
returns true .
Called when a span is started, if the span.isRecording
returns true .
This method is called synchronously on the execution thread, should not throw or block the execution thread.
Value parameters
parentContext
the optional parent SpanContext
span
the started span
Attributes
Source
BatchSpanProcessor.scala
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
Returns
a string representation of the object.
Definition Classes
Inherited from:
SpanProcessor
Source
SpanProcessor.scala
The name of the processor.
The name of the processor.
It will be used in an exception to distinguish individual failures in the multi-error scenario.
Attributes
See also
Source
BatchSpanProcessor.scala