sentry icon indicating copy to clipboard operation
sentry copied to clipboard

Error when grouping metrics by tag with dashes "-".

Open rodolfoBee opened this issue 1 year ago • 2 comments

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  1. Submit a metric with a tag that includes a dash in the key value (name). For example:
Sentry.metrics.increment("websiteTest", 1, {
  tags: {"tag-name": "dashedTag"},
});

Expected Result

Being able to group results using this tag.

From the documentation, the supported characters are:

Metric Tag Key: All word characters including _, -, ., /. Any unsupported characters will be removed from the tag key.

Actual Result

Error in the UI:

Image

Product Area

DDM

Link

https://helpandprovid.sentry.io/metrics/?interval=1h&project=5722597&statsPeriod=7d&widgets=%5B%7B%22mri%22%3A%22c%3Acustom%2FwebsiteTest%40none%22%2C%22aggregation%22%3A%22sum%22%2C%22query%22%3A%22%22%2C%22groupBy%22%3A%5B%22tag-name%22%5D%2C%22powerUserMode%22%3Afalse%2C%22type%22%3A1%2C%22id%22%3A0%2C%22displayType%22%3A%22line%22%2C%22sort%22%3A%7B%22order%22%3A%22asc%22%7D%2C%22isHidden%22%3Afalse%2C%22overlays%22%3A%5B%22samples%22%5D%7D%5D

DSN

No response

Version

No response

rodolfoBee avatar Aug 16 '24 07:08 rodolfoBee

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] avatar Aug 16 '24 07:08 getsantry[bot]

Routing to @getsentry/product-owners-ddm for triage ⏲️

getsantry[bot] avatar Aug 16 '24 12:08 getsantry[bot]

After careful consideration, we are ending the beta program and will retire the current Metrics solution on October 7th. Stay tuned for updates and read the FAQs for more details.

matejminar avatar Sep 16 '24 13:09 matejminar