Giter Site home page Giter Site logo

dachakra / flask-renamed Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sentry-demos/flask

0.0 0.0 0.0 12.13 MB

https://docs.sentry.io/platforms/python/flask/

Home Page: https://docs.sentry.io/platforms/python/flask/

Makefile 29.15% Python 54.13% Shell 12.57% Dockerfile 3.27% Procfile 0.88%

flask-renamed's Introduction

sentry-demos/flask

Summary:

To show how Sentry works in an example web app that uses Flask

  • how to integrate the Sentry SDK into Flask (https://docs.sentry.io/platforms/python/flask/)
  • trigger an error that gets sent as Event to Sentry.io Platform
  • app.py has multiple endpoints for showing different ways that errors are handled
  • Sentry Release cycle covered in Makefile

Initial Setup & Run

  1. pip install -r ./requirements.txt
  2. Configure Sentry with your DSN key in app.py
  3. Configure sentry-cli (is for creating Sentry releases) with your SENTRY_AUTH_TOKEN in Makefile or set as environment variable. Do the same for SENTRY_ORG and SENTRY_PROJECT
  4. Check your Github repo is integrated into your Sentry organization.
  5. run make, which will use sentry-cli to create Sentry release and associatae commits, and run the Flask application
make deploy

Deploy to GCP Cloud Run

make deploy_gcp

GIF

Alt Text

flask-renamed's People

Contributors

thinkocapo avatar ndmanvar avatar idosun avatar dachakra avatar

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.