Skip to content

An example tool that uploads minidumps and event payloads to Sentry with compression

License

Notifications You must be signed in to change notification settings

getsentry/example-minidump-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minidump Upload Example

An example tool that uploads minidumps and event payloads to Sentry with compression built with the Sentry Python SDK.

Installation

It is recommended to install dependencies in a virtual environment:

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Usage

To upload a minidump, export the SENTRY_DSN environment variable and call it with the path to the file. This will compress the minidump before sending it to Sentry:

export SENTRY_DSN="..."
./upload.py /path/to/mini.dmp

The script prints out the event ID of a new error event that will be created through the upload.

The script takes an optional event payload JSON as second parameter. The JSON file can be downloaded from the Issue Details page. This is useful when additional context and breadcrumb information from the original minidump submission should also be reuploaded.

export SENTRY_DSN="..."
./upload.py /path/to/mini.dmp /path/to/event.json

About

An example tool that uploads minidumps and event payloads to Sentry with compression

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages