Bun samples are verified on Bun 1.3.13; HTTP/2 clients need Bun >= 1.2.6, and a few packages skip their Bun suite in CI. Runtime compatibility
Connectum API Reference / @connectum/testing / index / InMemoryMetricCollector
Class: InMemoryMetricCollector โ
Defined in: testing/src/otel-collectors.ts:191
In-memory metric collector. Owns its own MeterProvider and periodic reader. flush() performs a forced collect+export cycle synchronously (via forceFlush) and returns the normalized data.
Constructors โ
Constructor โ
new InMemoryMetricCollector():
InMemoryMetricCollector
Defined in: testing/src/otel-collectors.ts:196
Returns โ
InMemoryMetricCollector
Properties โ
exporter โ
readonlyexporter:InMemoryMetricExporter
Defined in: testing/src/otel-collectors.ts:192
provider โ
readonlyprovider:MeterProvider
Defined in: testing/src/otel-collectors.ts:193
reader โ
readonlyreader:PeriodicExportingMetricReader
Defined in: testing/src/otel-collectors.ts:194
Methods โ
dispose() โ
dispose():
Promise<void>
Defined in: testing/src/otel-collectors.ts:229
Returns โ
Promise<void>
flush() โ
flush():
Promise<NormalizedMetric[]>
Defined in: testing/src/otel-collectors.ts:208
Returns โ
Promise<NormalizedMetric[]>
reset() โ
reset():
void
Defined in: testing/src/otel-collectors.ts:225
Returns โ
void
