Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

doc(metrics): Metric tags can only have a single value#1307

Merged
jjbayer merged 2 commits intomasterfrom
jjbayer-patch-1
Jun 12, 2024
Merged

doc(metrics): Metric tags can only have a single value#1307
jjbayer merged 2 commits intomasterfrom
jjbayer-patch-1

Conversation

@jjbayer
Copy link
Copy Markdown
Member

@jjbayer jjbayer commented Jun 11, 2024

Neither Relay nor storage support multi-value tags.

Fixes getsentry/relay#3691.

Neither Relay nor storage support multi-value tags.

Fixes getsentry/relay#3691.
@jjbayer jjbayer requested review from a team, jan-auer and mitsuhiko June 11, 2024 07:56
@vercel
Copy link
Copy Markdown

vercel bot commented Jun 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
develop ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 11, 2024 0:52am

Copy link
Copy Markdown
Member

@Dav1dde Dav1dde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically this still allows the interpretation of having two pairs (a, 1) and (a, 2) for the same metric.

@jjbayer
Copy link
Copy Markdown
Member Author

jjbayer commented Jun 11, 2024

Technically this still allows the interpretation of having two pairs (a, 1) and (a, 2) for the same metric.

@Dav1dde what do you suggest?

* **Tagging:** metrics are tagged by key value pairs, where each key can have more
than one value. Both keys and values are limited to strings, but the SDK can
expose other types if it has a reasonable way to stringify these.
* **Tagging:** metrics are tagged by key value pairs. Both keys and values are limited to strings,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

re: David's suggestion, maybe the following:

Suggested change
* **Tagging:** metrics are tagged by key value pairs. Both keys and values are limited to strings,
* **Tagging:** metrics are tagged by unique key value pairs. Both keys and values are limited to strings,

but I think it's ok to merge as-is.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(a, 1) and (a, 2) are still unique pairs.

Co-authored-by: David Herberth <david.herberth@sentry.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multi-valued metric tags not supported

3 participants