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

Don't trace OPTIONS and HEAD in ASGI frameworks by default

Open antonpirker opened this issue 1 year ago • 0 comments

Make sure that frameworks based on ASGI do not create transactions for the HTTP methods OPTIONS and HEAD by default.

For FastAPI and Starlette also add a config option to the integrations to specify which HTTP methods to create transactions for.

(For other smaller frameworks we keep the default of not creating OPTIONS and HEAD transaction, but will add an option to specify for wich HTTP methods to create transactions on request)

Docs PR: https://github.com/getsentry/sentry-docs/pull/11349

antonpirker avatar Sep 12 '24 12:09 antonpirker