Closed
Description
How do you use Sentry?
Sentry Saas (sentry.io)
Version
2
Steps to Reproduce
-
Setup the SDK and type sentry_sdk.metrics.X where X is gauge, increment, set, or distribution. Hover X to see Optional[MetricTags] as type for tags. Go to the definition of MetricTags to see its definition: Mapping[str, MetricTagValue]. Go to the definition of MetricTagValue to see that it's defined as a Union of many types, including None, List, and Tuple.
-
Send a metric using a tag value of type None, List, or Tuple, e.g., sentry_sdk.metrics.gauge("test", 1, tags={"mytag": None}).
Expected Result
Metric shows up in sentry.io dashboard with tags attached as follows:
- None: If tag value is None, the tag is attached to the metric but has no tag value.
- List/Tuple: If tag value is a List or Tuple, the tag is attached to the metric and has all values specified in the List/Tuple.
Actual Result
None: tag isn't added.
List/Tuple: only the last value in the List/Tuple shows up as a value for the tag.
Metadata
Metadata
Assignees
Labels
No labels