WarpMetricExporter
constructor(replica: ReplicaId, store: DurableStore, maxMetrics: Int = DEFAULT_MAX_METRICS, bufferPolicy: MetricBufferPolicy = MetricBufferPolicy.DROP_OLDEST, histogramPrototype: DDSketch = DDSketch.empty(relativeAccuracy = alphaForOtlpScale(DEFAULT_OTLP_HISTOGRAM_SCALE)))
Parameters
replica
Stable unique identity for this device/process (use a UUID).
store
Durable persistence backend. InMemoryDurableStore in tests.
maxMetrics
Maximum number of distinct MetricKeys across all kinds.
bufferPolicy
Eviction strategy when maxMetrics is exceeded.
histogramPrototype
The empty DDSketch every new histogram series starts from — its (relativeAccuracy, minIndexedValue, maxIndexedValue) is the cluster-wide histogram configuration. Must be empty and OTLP-aligned; defaults to scale DEFAULT_OTLP_HISTOGRAM_SCALE (α ≈ 1.08%) over the DDSketch default range.