Giter Club home page Giter Club logo

coredump-uploader's Introduction

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
  • poetry
  • gdb
  • elfutils

Usage

Upload coredump

$ export SENTRY_DSN=https://something@your-sentry-dsn/42
$ upload_coredump /path/to/core upload /path/to/executable

OR

$ upload_coredump --sentry-dsn https://something@your-sentry-dsn/42 /path/to/executable upload /path/to/core 

Watch for coredumps

$ upload_coredump --sentry-dsn https://something@your-sentry-dsn/42 /path/to/executable watch /path/to/dir 

Development

We use Poetry for development. To get started, first install dependencies:

poetry install

To run tests, use:

poetry run pytest tests/

To run the application:

poetry run upload_coredump ...

coredump-uploader's People

Contributors

drindhauser avatar jan-auer avatar kristjanvalur avatar mitsuhiko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coredump-uploader's Issues

How can I add tags to my crash reports?

We are uploading coredumps produced by the esp32 microcontroller and I want to attach the customers serial number and used firmware version to the sentry report for later analysis.

How can I attach custom tags to the report using this python script?

Add deployment documentation

Some suggestions from someone setting up on linux.

Readme talks about development. But deployment (e.g. in a docker container) is something else.
Currently I think I have to to:

  • install python3 and pip3, gdb, elfutils, e.g. apt install -y python3 python3-pip gdb elfutils
  • pip3 install poetry
  • clone repo or unzip source
  • cd into root and run poetry update && poetry install

to run the program we need to poetry run upload_coredump from the root folder.

Additionally, this tool might be mentioned in the sentry platform documentation, also the fact that linux core files are not natively supported.

Cheers!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.