Skip to content

OtelMetric

This docs was updated at: 2026-02-23

com.paragon.telemetry.otel.OtelMetric  ยท  Record


Represents an OTLP metric with its data points.

See Also

  • <a href="https://opentelemetry.io/docs/specs/otel/metrics/data-model/">OTEL Metrics Data Model</a>

Methods

gauge

public static @NonNull OtelMetric gauge(
      @NonNull String name,
      @Nullable String description,
      @Nullable String unit,
      @NonNull List<OtelDataPoint> dataPoints)

Creates a gauge metric.


counter

public static @NonNull OtelMetric counter(
      @NonNull String name,
      @Nullable String description,
      @Nullable String unit,
      @NonNull List<OtelDataPoint> dataPoints)

Creates a cumulative sum (counter) metric.