sentry-python
sentry-python copied to clipboard
Don't trace OPTIONS and HEAD in ASGI frameworks by default
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