getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
39.26k stars 4.21k forks source link

custom fields #77128

Open mrzbn opened 2 months ago

mrzbn commented 2 months ago

Problem Statement

I want to send some field (e.g. api response time) to sentry and apply functions on it in dashboard like p99 or avg. is there already a way for that? cause I see only some defined fields can be used with these functions.

Solution Brainstorm

No response

Product Area

Dashboards

getsantry[bot] commented 2 months ago

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] commented 2 months ago

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

ale-cota commented 2 months ago

hi @mrzbn, You can send custom fields to sentry by either using custom tags or custom measurements if you're looking only at numerical values.

However, for the use case you mentioned - measuring something like api response time and plotting the avg or p99 - you can use the transaction.duration field which serves exactly this purpose. You can then for example group it by transaction then to see the values per specific endpoint. Please try that out and let us know if you have other questions.