diff --git a/packages/sdk-metrics/src/state/MetricCollector.ts b/packages/sdk-metrics/src/state/MetricCollector.ts index 523525377d2..ab9fdf07918 100644 --- a/packages/sdk-metrics/src/state/MetricCollector.ts +++ b/packages/sdk-metrics/src/state/MetricCollector.ts @@ -96,7 +96,7 @@ export class MetricCollector implements MetricProducer { * collector. */ selectCardinalityLimit(instrumentType: InstrumentType): number { - return this._metricReader.selectCardinalityLimit(instrumentType); + return this._metricReader.selectCardinalityLimit.?(instrumentType) ?? 2000; } }