Metrics Exporter - In-memory

Status: Stable

In-memory Metrics Exporter is a Push Metric Exporter which accumulates metrics data in the local memory and allows to inspect it (useful for e.g. unit tests).

In-memory Metrics Exporter MUST provide configuration to set the MetricReader output temporality as a function of instrument kind. This option MAY be named temporality, and MUST set temporality to Cumulative for all instrument kinds by default.

In-memory Metrics Exporter MAY provide configuration to set the MetricReader default aggregation as a function of instrument kind. This option MAY be named default_aggregation, and MUST use the default aggregation by default.

If a language provides a mechanism to automatically configure a MetricReader to pair with the associated exporter (e.g., using the OTEL_METRICS_EXPORTER environment variable), by default the exporter MUST be paired with a periodic exporting MetricReader.