ref: update readme

This commit is contained in:
Armin Ronacher
2020-02-28 12:34:49 +01:00
parent 75ba3d012c
commit db9165932d
3 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,8 @@
# Coredump Uploader
This utility can upload core dumps to Sentry. It can either upload a single core dump or watch a folder
for incoming core dumps to automatically upload them as they happen.
## Requirements
- python

View File

@ -601,7 +601,11 @@ class CoredumpUploader(object):
)
@click.pass_context
def cli(context, path_to_executable, sentry_dsn, gdb_path, elfutils_path, all_threads):
"""Initialize Sentry-dsn and Coredump-uploader"""
"""Sentry coredump uploader
This utility can upload core dumps to sentry by stack walking them with the help
of GDB.
"""
sentry_sdk.init(sentry_dsn, max_breadcrumbs=0)
uploader = CoredumpUploader(
path_to_executable, sentry_dsn, gdb_path, elfutils_path, all_threads

View File

@ -5,7 +5,7 @@ description = ""
authors = ["Dominik Rindhauser <dominik.rindhauser@sentry.io>"]
[tool.poetry.dependencies]
python = "^2.7"
python = "^2.7 || ^3.5"
sentry-sdk = "^0.14.1"
click = "^7.0"
watchdog = "^0.8.2"
@ -14,7 +14,7 @@ watchdog = "^0.8.2"
pytest = "^4.6.9"
[tool.poetry.scripts]
upload_coredump = "coredump_uploader:main"
upload_coredump = "coredump_uploader:cli"
[build-system]
requires = ["poetry>=0.12"]