sentry-python
sentry-python copied to clipboard
The official Python SDK for Sentry.io
We want to define a set of [lightweight metrics](https://docs.sentry.io/product/explore/metrics/) that SDKs can automatically collect for e.g. framework, language or platform, focusing only on signals that **do NOT overlap with Tracing**....
### Description Logs and metrics were going through a completely separate pipeline compared to other events. Conceptually, they're still different from regular events since they're more lightweight and attribute-based (no...
Logs and metrics implementations were done directly on the client, move them to scope so it's a bit more future compat with adding scope attributes and such when we decide...
### How do you use Sentry? Self-hosted/on-premise ### Version 2.45.0 ### Steps to Reproduce **Environment** - sentry-sdk version: 2.45.0 - Python version: 3.10.x - OS: Linux (x86_64) - Framework: FastAPI...
### Description WIP: Draft implementation of span first/span streaming in the Python SDK. Uses the existing `start_span` API, but batches spans and sends them independently of the transaction/segment span. Enables...
Send tracing context according to the specification below in various AI libraries. https://github.com/getsentry/sentry-docs/pull/15752
Receive tracing context according to the specification below in our `mcp` integration. https://github.com/getsentry/sentry-docs/pull/15752
If envelope limits turn out to be prohibitive, add a mechanism to the span buffer to flush early if we detect we've accumulated >= \~1 MB of spans.
Write a better guide on how to write a new SDK integration. Mention: - relying on `get_current_span()` is brittle, carry the reference to the actual span around if possible -...