sentry-python
sentry-python copied to clipboard
The official Python SDK for Sentry.io
### How do you use Sentry? Sentry Saas (sentry.io) ### Version 1.9.10 ### Steps to Reproduce Example code ``` import sentry_sdk from http.client import HTTPConnection print("sending reqeust with None url...
### Problem Statement Afaik there's currently no way to [filter out transaction events](https://docs.sentry.io/platforms/python/configuration/filtering/) of HTTP requests by status code (e.g. HTTP 404) using the `traces_sampler` configuration option. `sampling_context` currently exposes...
Make sure each asyncio task that is run has its own Hub and also creates a span. Fixes #1333 Fixes #772
### How do you use Sentry? Sentry Saas (sentry.io) ### Version 1.9.10 ### Steps to Reproduce Server: ```python import sentry_sdk from fastapi import FastAPI, Request sentry_sdk.init() app = FastAPI() @app.post("/")...
To better visualize what is going on when ASGI middlewares are executed we added instrumentation for the `receive` and `send` callbacks. FIxes #1664
Adds breadcrumbs and performance traces for PyMongo queries using an official monitoring API. Integration is similar to the one available in OpenTelemetry, tags set to values recommended for attributes by...
### Environment SaaS (https://sentry.io/) ### Version _No response_ ### Steps to Reproduce Using the python SDK. version 1.5.4. if you run multiple subtasks concurrently (with async await) within each of...
I've got the following code: ```python import asyncio import sentry_sdk async def foo(): with sentry_sdk.start_span(op="foo"): await asyncio.sleep(1) async def bar(): with sentry_sdk.start_span(op="bar"): await asyncio.sleep(1) with sentry_sdk.start_span(op="root"): await asyncio.gather(foo(), bar(), return_exceptions=True)...
Bumps [black](https://github.com/psf/black) from 22.8.0 to 22.10.0. Release notes Sourced from black's releases. 22.10.0 Highlights Runtime support for Python 3.6 has been removed. Formatting 3.6 code will still be supported until...
### How do you use Sentry? Sentry Saas (sentry.io) ### Version 1.9.10 ### Steps to Reproduce ``` # main.py import sentry_sdk from sentry_sdk.integrations.gcp import GcpIntegration sentry_sdk.init( dsn="https://***@***.ingest.sentry.io/***", integrations=[GcpIntegration()] ) def...