#what is the difference between custom metric and transaction's custom measurement

2 messages · Page 1 of 1 (latest)

proper raptor
#

hi, i have saw the new feature called custom metric show on the sentry.io. But I am not quite understand the difference between the custom measurement I used to use in a transaction. Custom measurements had maximum limit on number while metrics are not. Is that all?

dense sparrow
#

hi, Tia! The beta feature custom metrics is different in two ways:

  • they are indeed unlimited (custom measurements are limited to 10 per transactions)
  • they are sent totally separately from transactions, whereas custom measurements are sent as attributes on a transaction
    We actually found via the beta process making metrics separate from spans/transactions reduces their value in real-world debugging and observability workflows, so we will be changing the API. You can find more details about the upcoming change here in case you're interested. So very trasparently, if you're already using custom measurements at this point we don't recommend switching over to custom metrics yet. Hope that helps to clarify things, but let me know if you have other questions.

Also out of curiosity - what is your use case for custom measurements? Is having a metric strongly coupled to a transaction important/useful for you and how? Thank you!