Skip to content
Discussion options

You must be logged in to vote

For metrics, high-cardinality data (like an arbitrary ID) is not recommended to be collected as attributes on a metric count towards its identity. For example foo.bar with user=1 is considered distinct from foo.bar with user=2, so if user is an arbitrary 32-bit integer it can cause a cardinality explosion and could lead to a large number of active series in a metrics back-end. This in turn could have a significant impact on your telemetry costs. A finite set (e.g. HTTP methods, GET/POST etc.) wouldn't typically be of concern.

The same consideration with respect to identity doesn't apply to traces as the identity for a span is its unique ID, so the number of attributes that a trace has doe…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by WeihanLi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants