Skip to content

Commit 4cc2778

Browse files
committed
Unlimited cardinality in SDK metrics (potentially breaking change in OTEL 1.43.0 -> 1.44.0) update
1 parent 013889b commit 4cc2778

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

flow/otel_metrics/otel_manager.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,9 @@ func setupMetricsAndProvider(
741741
sdkmetric.WithReader(sdkmetric.NewPeriodicReader(metricExporter)),
742742
sdkmetric.WithResource(otelResource),
743743
sdkmetric.WithView(views...),
744+
// otel v1.44.0 introduced a default cardinality limit of 2000 per instrument;
745+
// 0 disables it, preserving the previous unlimited behavior
746+
sdkmetric.WithCardinalityLimit(0),
744747
)
745748
return meterProvider, nil
746749
}

0 commit comments

Comments
 (0)