Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Sentry Alert configuration based on production and development environment #16732

Closed
zeeshanrafiqrana opened this issue Dec 6, 2023 · 1 comment
Labels
A-Logging Synapse's logs (structured or otherwise). Not metrics. good first issue Good for newcomers O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Tolerable Minor significance, cosmetic issues, low or no impact to users.

Comments

@zeeshanrafiqrana
Copy link
Contributor

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

  • enable sentry configuration in homeserver.yaml
  • add dsn and use same dsn over locall, production, development and stage environment
  • We need to check there by taking a look on trace to find which domain / ip is throwing the error.

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
Copy link
Contributor

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.

@DMRobertson DMRobertson added A-Logging Synapse's logs (structured or otherwise). Not metrics. good first issue Good for newcomers S-Tolerable Minor significance, cosmetic issues, low or no impact to users. O-Uncommon Most users are unlikely to come across this or unexpected workflow labels Dec 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Logging Synapse's logs (structured or otherwise). Not metrics. good first issue Good for newcomers O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Tolerable Minor significance, cosmetic issues, low or no impact to users.
Projects
None yet
Development

No branches or pull requests

2 participants