sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

Do not start transaction for OPTIONS requests

Open adinauer opened this issue 3 years ago • 0 comments

Integration

sentry-spring

Java Version

8

Version

6.4.1

Steps to Reproduce

Have a mapping for an OPTIONS request like:

  @RequestMapping(method = RequestMethod.OPTIONS, value = "{id}")
  void options(@PathVariable Long id) {
    LOGGER.info("options called");
  }

Send OPTIONS request

This should affect Spring WebMVC and Webflux as well.

Expected Result

No transaction is created for OPTIONS requests

Actual Result

Starts a transaction and sends it

adinauer avatar Sep 05 '22 06:09 adinauer