numerique-gouv / people

Teams management application
MIT License
13 stars 1 forks source link

Separate environments in monitoring #419

Open mjeammet opened 2 months ago

mjeammet commented 2 months ago

Feature Request

Add environment information for Sentry to distinguish what comes from staging/preprod/production.

https://docs.sentry.io/platforms/python/configuration/environments/

import sentry_sdk

sentry_sdk.init(
    # ...

    environment="staging",
)