Skip to content

Add a tag on Sentry events for HTTP error responses

It seems we could use something like this:

Sentry.withScope(scope => {
  scope.setTag('method', error.request.method)
  scope.setTag('api-url', error.request.url)
  Sentry.captureException(error)
})

In Sentry, this would allow doing search queries such as method:GET api-url:https://arkindex.teklia.com/element/*/links/ to allow listing all Sentry issues related to ListElementLinks.

Edited by Erwan Rouchet