Class: MetricsBuffer
worker.MetricsBuffer
A buffer that can be set on RuntimeOptions.telemetry.metricsExporter to record metrics instead of ignoring/exporting them.
It is important that the buffer size is set to a high number and that retrieveUpdates is
called regularly to drain the buffer. If the buffer is full, metric updates will be dropped
and an error will be logged.
Buffered metrics is an experimental feature. APIs may be subject to change.
Constructors
constructor
• new MetricsBuffer(options?): MetricsBuffer
Parameters
| Name | Type |
|---|---|
options? | MetricsBufferOptions |