Class SubscribersBatch<T>
java.lang.Object
io.mishmash.opentelemetry.server.collector.Batch<Flow.Subscriber<? super T>>
io.mishmash.opentelemetry.server.collector.SubscribersBatch<T>
- Type Parameters:
T- the subscriber record type
- Direct Known Subclasses:
Log,MetricDataPoint,Span
A 'batch' of all
LogsSubscribers, MetricsSubscribers
or @{link SpansSubscribers} that were given the task to process
an OpenTelemetry log record, metric data point or trace span.-
Constructor Summary
ConstructorsConstructorDescriptionSubscribersBatch(Batch<T> parent, io.opentelemetry.context.Context otelContext) Create a new 'batch' of subscribers. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCalled when the batch is completed.Methods inherited from class io.mishmash.opentelemetry.server.collector.Batch
add, addAll, cancel, complete, completeExceptionally, currentOtelScope, future, getOtelContext, getProcessedElements, isCancelled, isLoaded, setLoaded, setLoadFailed
-
Constructor Details
-
SubscribersBatch
Create a new 'batch' of subscribers.- Parameters:
parent- the batch of OpenTelemetry dataotelContext-Contextfor own telemetry
-
-
Method Details
-
otelComplete
Called when the batch is completed.- Overrides:
otelCompletein classBatch<Flow.Subscriber<? super T>>- Parameters:
t- the cause of an error or null if successful
-