sentry-python
sentry-python copied to clipboard
The official Python SDK for Sentry.io
POTel PRs: [https://github.com/getsentry/sentry-python/pull/3446](https://github.com/getsentry/sentry-python/pull/3446) [https://github.com/getsentry/sentry-python/pull/3412](https://github.com/getsentry/sentry-python/pull/3412)
### How do you use Sentry? Sentry Saas (sentry.io) ### Version 2.39.0 ### Steps to Reproduce See https://github.com/strawberry-graphql/strawberry/issues/3623 ### Expected Result No uncaught exception. ### Actual Result ``` Traceback (most...
- Only apply whatever truncation we have in SDK if the event is too large - Only apply truncation if itβs an exception related to recursion - Replicate relays truncation...
Fixes GH-3516
### Description Comply with the new spec added with this [PR](https://github.com/getsentry/sentry-docs/pull/15260/files) to the [BatchProcessor develop docs](https://develop.sentry.dev/sdk/telemetry/spans/batch-processor/), which minimizes data loss by sending spans in memory in a couple of scenarios....
### Problem Statement Free-threaded Python is now officially supported https://docs.python.org/3/whatsnew/3.14.html#whatsnew314-free-threaded-now-supported ### Solution Brainstorm Mirrors the plan for https://github.com/getsentry/sentry-python/issues/4895
#### π 37% (0.37x) speedup for ***`extract_sentrytrace_data` in `sentry_sdk/tracing_utils.py`*** This one looked really important as well. I found a bunch more optimizations, but don't want to spam you guys. Would...
### Description #### Issues #### Reminders - Please add tests to validate your changes, and lint your code using `tox -e linters`. - Add GH Issue ID _&_ Linear ID...
#### π 15% (0.15x) speedup for ***`has_tracing_enabled` in `sentry_sdk/tracing_utils.py`*** Looks like an important function to me. I have 60 more optimizations for sentry-python at https://github.com/codeflash-ai/sentry-python/pulls that i would like to...
### Description This PR fixes the deprecation warning for asyncio.iscoroutinefunction that will be removed in Python 3.16. The function was deprecated in Python 3.12 in favor of inspect.iscoroutinefunction. #### Issues...