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

public class SubscribersBatch<T> extends Batch<Flow.Subscriber<? super T>>
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 Details

    • SubscribersBatch

      public SubscribersBatch(Batch<T> parent, io.opentelemetry.context.Context otelContext)
      Create a new 'batch' of subscribers.
      Parameters:
      parent - the batch of OpenTelemetry data
      otelContext - Context for own telemetry
  • Method Details

    • otelComplete

      protected void otelComplete(Throwable t)
      Called when the batch is completed.
      Overrides:
      otelComplete in class Batch<Flow.Subscriber<? super T>>
      Parameters:
      t - the cause of an error or null if successful