__init__.py |
Returns an iterator of the default integration classes: |
10218 |
_asgi_common.py |
Extract headers from the ASGI scope, in the format that the Sentry protocol expects.
|
3187 |
_wsgi_common.py |
Base class for request extraction.
|
7558 |
aiohttp.py |
|
12895 |
anthropic.py |
Get JSON of a Anthropic responses.
|
9426 |
argv.py |
|
911 |
ariadne.py |
Add request data and api_target to events. |
5834 |
arq.py |
|
7881 |
asgi.py |
An ASGI middleware.
Based on Tom Christie's `sentry-asgi <https://github.com/encode/sentry-asgi>`.
|
12779 |
asyncio.py |
|
4034 |
asyncpg.py |
|
6521 |
atexit.py |
This is the default shutdown callback that is set on the options.
It prints out a message to stderr that informs the user that some events
are still pending and the process is waiting for them to flush out.
|
1652 |
aws_lambda.py |
|
17954 |
beam.py |
Inspect function overrides the way Beam gets argspec.
|
5182 |
boto3.py |
|
4411 |
bottle.py |
|
6615 |
celery |
|
|
chalice.py |
|
4699 |
clickhouse_driver.py |
|
5247 |
cloud_resource_context.py |
Name of the cloud provider.
see https://opentelemetry.io/docs/reference/specification/resource/semantic_conventions/cloud/
|
7780 |
cohere.py |
|
9333 |
dedupe.py |
|
1418 |
django |
|
|
dramatiq.py |
Dramatiq integration for Sentry
Please make sure that you call `sentry_sdk.init` *before* initializing
your broker, as it monkey patches `Broker.__init__`.
This integration was originally developed and maintained
by https://github.com/jacobsvante and later donated to the Sentry
project.
|
5583 |
excepthook.py |
|
2408 |
executing.py |
|
1994 |
falcon.py |
Captures exceptions in Falcon requests and send to Sentry |
9501 |
fastapi.py |
|
4718 |
flask.py |
|
8740 |
gcp.py |
|
8274 |
gnu_backtrace.py |
^(?P<index>\d+)\.\s
(?P<package>{MODULE_RE})\(
(?P<retval>{TYPE_RE}\ )?
((?P<function>{TYPE_RE})
(?P<args>\(.*\))?
)?
((?P<constoffset>\ const)?\+0x(?P<offset>{HEXVAL_RE}))?
\)\s
\[0x(?P<retaddr>{HEXVAL_RE})\]$
|
2894 |
gql.py |
The RequestsHTTPTransport allows defining the HTTP method; all
other transports use POST.
|
4179 |
graphene.py |
|
5042 |
grpc |
|
|
httpx.py |
httpx has its own transport layer and can be customized when needed,
so patch Client.send and AsyncClient.send to support both synchronous and async interfaces.
|
5866 |
huey.py |
|
5443 |
huggingface_hub.py |
|
6551 |
langchain.py |
Base callback handler that can be used to handle callbacks from langchain. |
17718 |
launchdarkly.py |
:param client: An initialized LDClient instance. If a client is not provided, this
integration will attempt to use the shared global instance.
|
1935 |
litestar.py |
Replaces the Litestar class's `__init__` function in order to inject `after_exception` handlers and set the
`SentryLitestarASGIMiddleware` as the outmost middleware in the stack.
See:
- https://docs.litestar.dev/2/usage/applications.html#after-exception
- https://docs.litestar.dev/2/usage/middleware/using-middleware.html
|
11569 |
logging.py |
This disables recording (both in breadcrumbs and as events) calls to
a logger of a specific name. Among other uses, many of our integrations
use this to prevent their actions being recorded as breadcrumbs. Exposed
to users as a way to quiet spammy loggers.
:param name: The name of the logger to ignore (same string you would pass to ``logging.getLogger``).
|
13307 |
loguru.py |
Modified version of :class:`sentry_sdk.integrations.logging.EventHandler` to use loguru's level names. |
6193 |
modules.py |
|
820 |
openai.py |
|
15585 |
openfeature.py |
|
1235 |
opentelemetry |
|
|
pure_eval.py |
|
4581 |
pymongo.py |
|
6380 |
pyramid.py |
|
7364 |
quart.py |
|
7437 |
ray.py |
Ray Worker
|
4162 |
redis |
|
|
rq.py |
|
5307 |
rust_tracing.py |
This integration ingests tracing data from native extensions written in Rust.
Using it requires additional setup on the Rust side to accept a
`RustTracingLayer` Python object and register it with the `tracing-subscriber`
using an adapter from the `pyo3-python-tracing-subscriber` crate. For example:
```rust
#[pyfunction]
pub fn initialize_tracing(py_impl: Bound<'_, PyAny>) {
tracing_subscriber::registry()
.with(pyo3_python_tracing_subscriber::PythonCallbackLayerBridge::new(py_impl))
.init();
}
```
Usage in Python would then look like:
```
sentry_sdk.init(
dsn=sentry_dsn,
integrations=[
RustTracingIntegration(
"demo_rust_extension",
demo_rust_extension.initialize_tracing,
event_type_mapping=event_type_mapping,
)
],
)
```
Each native extension requires its own integration.
|
9078 |
sanic.py |
The unsampled_statuses parameter can be used to specify for which HTTP statuses the
transactions should not be sent to Sentry. By default, transactions are sent for all
HTTP statuses, except 404. Set unsampled_statuses to None to send transactions for all
HTTP statuses, including 404.
|
12960 |
serverless.py |
|
1804 |
socket.py |
patches two of the most used functions of socket: create_connection and getaddrinfo(dns resolver)
|
3169 |
spark |
|
|
sqlalchemy.py |
|
4372 |
starlette.py |
|
26413 |
starlite.py |
Replaces the Starlite class's `__init__` function in order to inject `after_exception` handlers and set the
`SentryStarliteASGIMiddleware` as the outmost middleware in the stack.
See:
- https://starlite-api.github.io/starlite/usage/0-the-starlite-app/5-application-hooks/#after-exception
- https://starlite-api.github.io/starlite/usage/7-middleware/0-middleware-intro/
|
10620 |
statsig.py |
|
1227 |
stdlib.py |
given (*args, **kwargs) of a function call, retrieve (and optionally set a
default for) an argument by either name or position.
This is useful for wrapping functions with complex type signatures and
extracting a few arguments without needing to redefine that function's
entire type signature.
|
8831 |
strawberry.py |
|
14126 |
sys_exit.py |
Captures sys.exit calls and sends them as events to Sentry.
By default, SystemExit exceptions are not captured by the SDK. Enabling this integration will capture SystemExit
exceptions generated by sys.exit calls and send them to Sentry.
This integration, in its default configuration, only captures the sys.exit call if the exit code is a non-zero and
non-None value (unsuccessful exits). Pass `capture_successful_exits=True` to capture successful exits as well.
Note that the integration does not capture SystemExit exceptions raised outside a call to sys.exit.
|
2493 |
threading.py |
|
5392 |
tornado.py |
|
7206 |
trytond.py |
|
1651 |
typer.py |
|
1815 |
unleash.py |
|
1058 |
wsgi.py |
Return the absolute URL without query string for the given WSGI
environment. |
10747 |