matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.83k stars 2.12k forks source link

Sentry Alert configuration based on production and development environment #16732

Closed zeeshanrafiqrana closed 11 months ago

zeeshanrafiqrana commented 11 months ago

Description

Hey Folks! I hope you all are doing well, I self hosted matrix synpase server. While working with sentry alert i found some time local/ dev environments are also triggering over the same DSN for production. After taking a look i found that sentry provide us environments option there so that alert will remain in specific group not mixed up and management keep easy for administrator to fix.

I have solution also to specify environments, if someone also face such type of issue i can open contribute here.

Thanks

image

Steps to reproduce

Steps to reproduce

Homeserver

matrix-server.sociail.com

Synapse Version

{"server_version":"1.96.0rc1 (b=TSK-577,8fe8534,dirty)"}

Installation Method

Docker (matrixdotorg/synapse)

Database

Postgres

Workers

Single process

Platform

Linux

Configuration

sentry: dsn: "w3e4r5t6y7u8i9o0-"

Relevant log output

No Logs.
Sentry Alert related issue

Anything else that would be useful to know?

NA

DMRobertson commented 11 months ago

I think we'd accept a PR which adds an env field under the sentry config and passes it to the sentry-sdk at startup time.