Class MetricsReporterList<T>

java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
java.util.ArrayList<T>
io.opentelemetry.instrumentation.kafka.internal.MetricsReporterList<T>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, RandomAccess, SequencedCollection<T>

public class MetricsReporterList<T> extends ArrayList<T>
List implementation that can be used to hold metrics reporters in kafka configuration without breaking serialization. When this list is serialized it removes OpenTelemetryMetricsReporter to ensure that the configuration can be deserialized even when the instrumentation is not present.

This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.

See Also:
  • Constructor Details

    • MetricsReporterList

      public MetricsReporterList()
  • Method Details

    • singletonList

      public static <T> List<T> singletonList(T o)