Skip to main content

sentry-offline-transport

Ruff codecov PyPI - Version PyPI - Python Version PyPI - Downloads

Transport for Sentry that saves failed-to-send events and resends them on the next launch.

Installation

sentry-offline-trasport requires Python >= 3.8.0, sentry-sdk >= 2.0.0.

Install from PyPI using pip or any other Python package manager.

pip install sentry-offline-transport

Usage

To start using the transport, you have to provide a path to store failed events. It can be an absolute or a relative path, either a string or a Path object. If the directory doesn't exist, it will be created along with all required parent directories.

By default, the transport will try to upload previously saved events right after the initialization. You can configure this behavior using the reupload_on_startup parameter.

import sentry_sdk
from sentry_offline import make_offline_transport

sentry_sdk.init(
    dsn="https://asdf@abcd1234.ingest.us.sentry.io/1234",
    transport=make_offline_transport(
        storage_path="~/.local/share/myapp/sentry_events", 
        reupload_on_startup=False,
    ),
)

Metadata

Release files for sentry-offline-transport 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sentry-offline-transport 1.0.0
File Size Uploaded
sentry_offline_transport-1.0.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sentry-offline-transport 1.0.0
File Interpreter ABI Platform
sentry_offline_transport-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / sentry_offline_transport-1.0.0.tar.gz

Download URL sentry_offline_transport-1.0.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a16baacfee6795451eb0f8d2e37517108a7e20ffc3bb0e108048990c74222c9e
BLAKE2b-256 checksum
How to use checksums
53078a8626a31c85c9f85af4d4748dd1f838d8ff67e72da27a6cc545633796cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.12 Linux/6.5.0-1021-azure

Release files / sentry_offline_transport-1.0.0-py3-none-any.whl

Download URL sentry_offline_transport-1.0.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0cd1ce1b8bc4bbe17fa813feeea259c43fff7b7ba0e50083939747ccbd4044c
BLAKE2b-256 checksum
How to use checksums
e9185e943463dd007ad5be3e51835970e2a7e229cd46f6cb924ddf38705397ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.12 Linux/6.5.0-1021-azure

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page