Skip to content

WATonomous/sentry-tunnel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sentry Tunnel

This repo is derived from the official example.

docker build -t sentry-tunnel .
docker run --rm -it --name sentry-tunnel -v $(pwd):/app -e ALLOWED_SENTRY_HOSTS=o123123123.ingest.sentry.io -e ALLOWED_SENTRY_PROJECT_IDS=456456456 -e DEPLOYMENT_ENVIRONMENT=dev -e SENTRY_DSN=<optional> -p 5000:5000 sentry-tunnel

Below is the original README:

Tunnel events through a Python Flask app

This example shows how you can use Flask to proxy events to Sentry.

The app always returns with status code 200, even if the request to Sentry failed, to prevent brute force guessing of allowed configuration options.

To run this example:

  1. Install requirements (preferably in some venv):
    pip install -r requirements.txt
  2. Adjust sentry_host and known_project_ids in the app.py to your needs
  3. Run the app with e.g.: flask run
  4. Send sentry event to http://localhost:5000/bugs, e.g. via the test html mentioned at examples/tunneling

Releases

No releases published

Packages