Skip to content

Commit

Permalink
Update packages/sdk-metrics/src/state/MetricCollector.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
  • Loading branch information
povilasv and pichlermarc committed Nov 12, 2024
1 parent b736012 commit 843b04b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk-metrics/src/state/MetricCollector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 843b04b

Please sign in to comment.