mozilla-services / Dockerflow

Cloud Services Dockerflow specification
Apache License 2.0
199 stars 28 forks source link

[proposal] Add an endpoint that crashes #70

Open leplatrem opened 1 year ago

leplatrem commented 1 year ago

Adding a crashing endpoint to our services could help us make that the service monitoring (logging and graph of 5XX responses) and error reporting (Sentry, slack notifs) is configured correctly.

@app.route("/__crash__")
def crash():
    logger.error("about to boom")
    raise ValueError("boom")
leplatrem commented 1 year ago

I see here that @jwhitlock and @willkg proposed a __broken__ endpoint for this

willkg commented 1 year ago

I threw that confluence page together based on what @jwhitlock and I have done in the past because nothing existed and I needed something to point to. I'm game for changing the endpoint to a name that makes more sense.

Also, it should be behind basicauth or require a superuser so it doesn't allow people to spam our Sentry instance.