#Is it possible to programmatically configure "Threshold settings" per endpoint/transaction?

4 messages · Page 1 of 1 (latest)

red garden
#

Per title, I'm looking for a way to specify in code what that the "Response Time Threshold" setting should be for a particular endpoint/transaction.

I know this is possible to configure a) globally, and b) per-endpoint via Web UI, but this isn't sufficient for our use-case:

  • We're deploying our app to several standalone envs, using separate Sentry projects.
  • We have a good number of "background jobs" that have no end-user involvement, and we want to those to have more relaxed thresholds as to not mess up apex metrics.
  • It's important that we have an apples-to-apples comparison across envs in Sentry.
  • Manual configuration of each endpoint's threshold is practically guaranteed to get out of sync across envs/Sentry projects.

Is this possible and/or a feature request I can upvote?

(Edit: NextJS 14.x, pages router, Sentry 7.x)

drowsy rock
#

Hello, Are you mainly trying to get the correct user misery score for these endpoints or are you trying to ensure your endpoints operate under certain SLOs?

red garden
#

Hi Dhrumil, thanks for following up.

The latter, I think. We’re aiming for 300ms for API endpoints that end-users hit, but everything else being much more relaxed (2-3s acceptable)

I only care to know if these “relaxed” endpoint suddenly take eg 5-10s to complete.

So over-all, I care about apdex >0.9, but only if an end-user interacts directly with the endpoint/transaction.

drowsy rock
#

It's not possible to do this today - What you could instead try is setting up alert rules for transaction duration and filter for transactions based on your business logic