sentry2csv
Dump Sentry issues to CSV for further analysis.
$ sentry2csv --token f9u3fdu821ed9j10sj19kjd991010 sparkmeter TopSecretProject13
Fetching issues page 1
Exported to sparkmeter-TopSecretProject13-export.csv
$ head -2 sparkmeter-TopSecretProject13-export.csv
Error,Location,Details,Events,Users,Notes,Link
AttributeError,secret_project.tasks.remove_every_zig,'NoneType' object has no attribute 'zig_count',12,1,,https://sentry.io/organizations/sparkmeter/issues/129481/
Installation
sentry2csv is available on PyPI.
pipx (reccomended)
pipx is a tool that allows you to install and run Python applications in isolated environments.
- Install pipx, following their instructions
- Install sentry2csv:
pipx install sentry2csv
pip
Alternatively, you can install sentry2csv using standard pip.
pip3 install sentry2csv
Use
- Get a Sentry API Token from https://sentry.io/settings/account/api/auth-tokens/
- Run the exporter:
sentry2csv --token <API_TOKEN> <SENTRY_ORG> <SENTRY_PROJECT>- For example,
sentry2csv --token f9u3fdu821ed9j10sj19kjd991010 sparkmeter TopSecretProject13
- For example,
This also accepts an optional --enrich flag. Enrichments augment issues with data from the latest event.
An enrichment is in the form of dotted.sentry.path=CSV_Field_Name, and multiple enrichments are comma-separated.
Development
- Clone this repository
- Create a virtualenv with Python 3.7 or greater
- e.g.,
mkvirtualenv -p $(which python3.7) sentry2csv
- e.g.,
- Install the package in editable mode:
pip install -e .[dev] - Hack away!
Metadata
Release files for sentry2csv 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sentry2csv-1.3.0.tar.gz | 6.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sentry2csv-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.6 kB
Release files / sentry2csv-1.3.0.tar.gz
| Download URL | sentry2csv-1.3.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88e10ac37bbff1a1863ae43e970b6a89f073b82e01901ba22d6bc25adbafd6d1
|
|
BLAKE2b-256 checksum How to use checksums |
d5fa016d57a21a76f3fae4f981f7dce5edda7549a9a0c0437380977600e93568
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.6
|
Release files / sentry2csv-1.3.0-py3-none-any.whl
| Download URL | sentry2csv-1.3.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47307a627ff093db7ad02920001833c138c237bfd9bdb03d49dcd4e699676b27
|
|
BLAKE2b-256 checksum How to use checksums |
e280abf8ceddf2f3a220974fd117ed462ef5b9607fd258664974692a62408a59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.6
|