sentry-python
sentry-python copied to clipboard
The official Python SDK for Sentry.io
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...
If `keep_alive` is set to `True`, we currently set [a bunch of TCP socket options](https://github.com/getsentry/sentry-python/blob/e6ca5a28dd139097ad7c8cb468e0b9232185b728/sentry_sdk/transport.py#L41-L52). There are also respective HTTP [headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Connection_management_in_HTTP_1.x#persistent_connections) ([`Connection`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Connection) and [`Keep-Alive`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive)) that we don't set. Apparently HTTP/1.1...
### How do you use Sentry? Self-hosted/on-premise ### Version 1.43.0 ### Steps to Reproduce When using Sanic with a dynamic application as mentioned on https://sanic.dev/en/guide/running/app-loader.html the performance tracing doesn't work....
### Problem Statement Currently, there are no memory insights surfaced by [profiling](https://docs.sentry.io/platforms/python/profiling/) ### Solution Brainstorm [Report CPU and memory insights](https://github.com/getsentry/sentry/discussions/49178) as reported by [Mobile SDKs](https://sentry.io/changelog/2023-9-25-profiling-cpu-and-memory-usage-for-mobile-ios-android/)
The file `_werkzeug.py` contains some vendored in code from very old versions of werkzeug. Please check: - Is this code used anywhere (I guess so) - Can we update the...
### How do you use Sentry? Sentry Saas (sentry.io) ### Version all ### Steps to Reproduce Those files have very low test coverage and we should revise the tests and...
### Problem Statement I just experimented LLM monitoring and could not make it work with AsyncOpenAI. Below is my code My sentry init is ``` sentry_sdk.init( dsn=os.environ.get("SENTRY_DSN"), integrations=[sentry_logging], environment=os.environ.get("ENVIRONMENT", "prod"),...
When tracking the value of a variable, correctly indicate it with { } curly brackets if it is a set
### Problem Statement In the following screenshot for a Sentry error captured with the Python Sentry SDK, it's non obvious which of the variables, `current_state` and `new_state` is the set...
### How do you use Sentry? Self-hosted/on-premise ### Version 2.13.0 ### Steps to Reproduce 1. Follow the instructions on https://docs.sentry.io/platforms/python/integrations/dramatiq/ for using the `DramatiqIntegration` 2. Enable tracing and profiling Additional...
### How do you use Sentry? Sentry Saas (sentry.io) ### Version 2.13.0 ### Steps to Reproduce 1) Crash happened on this line (see full traceback below) ```python File "/home/artsiom/dev/project/statistics.project.com/.venv_pypy/lib/pypy3.10/site-packages/sentry_sdk/profiler/utils.py", line...