You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7c2e78c
Browse filesBrowse the repository at this point in the historyBrowse files
description: Guidelines for creating OpenTelemetry metrics to avoid cardinality issues
3
+
globs:
4
+
- "**/*.ts"
5
+
---
6
+
7
+
# OpenTelemetry Metrics Guidelines
8
+
9
+
When creating or editing OTEL metrics (counters, histograms, gauges), always ensure metric attributes have **low cardinality**.
10
+
11
+
## What is Cardinality?
12
+
13
+
Cardinality refers to the number of unique values an attribute can have. Each unique combination of attribute values creates a new time series, which consumes memory and storage in your metrics backend.
0 commit comments