WarpTelemetry
constructor(replica: ReplicaId, store: DurableStore, maxSpans: Int = DEFAULT_MAX_SPANS, maxLogRecords: Int = DEFAULT_MAX_LOG_RECORDS, bufferPolicy: BufferPolicy = BufferPolicy.DROP_OLDEST, maxMetrics: Int = DEFAULT_MAX_METRICS, metricBufferPolicy: MetricBufferPolicy = MetricBufferPolicy.DROP_OLDEST)
Parameters
replica
Stable, unique identity for this device/process (use a UUID).
store
Durable persistence backend. InMemoryDurableStore in tests; a platform-specific WAL in production.
maxSpans
Maximum number of spans buffered in memory.
maxLogRecords
Maximum number of log records buffered in memory.
maxMetrics
Maximum number of distinct metric series buffered in memory.
bufferPolicy
Eviction strategy when maxSpans or maxLogRecords is exceeded.
metricBufferPolicy
Eviction strategy when maxMetrics is exceeded.