Back

[SOLVED] Enabling Sentry on self-hosted instance

  • 0
  • Self Hosted
  • Tools
  • General
kathelia.dokgu
13 Jul, 2023, 16:39

Hi guys - I'm trying to enable Sentry on my self-hosted instance but I'm having issues getting the values I need to set.

On the documentation it looks like I can just modify the .env file and supply the following:

TypeScript
_APP_LOGGING_PROVIDER=sentry
_APP_LOGGING_CONFIG=

From the environment variables documentation - the _APP_LOGGING_CONFIG should be set to SENTRY_API_KEY;SENTRY_APP_ID. I can't find these two at all. There was something about the SENTRY_API_KEY being no longer available for new accounts as it is already deprecated. Can anyone tell me which page to go to so I can grab these values? I really want to use Sentry on my instance.

TL;DR
Title: [SOLVED] Enabling Sentry on self-hosted instance Solution: The user needed to modify the `.env` file and set `_APP_LOGGING_CONFIG` to `SENTRY_API_KEY;SENTRY_APP_ID`. However, they couldn't find these values. Another user provided the solution, which is to use the following format for the DSN: `https://{SENTRY_API_KEY}@blabla.ingest.sentry.io/{SENTRY_APP_ID}`. The user also mentioned that the documentation may need improvement. Note: The user's issue has been resolved.
kathelia.dokgu
13 Jul, 2023, 17:14

Thank you, it works for me now! It looks like on the DSN you can get those values:

TypeScript
https://{SENTRY_API_KEY}@blabla.ingest.sentry.io/{SENTRY_APP_ID}

Considering people do ask about it, maybe the documentation needs to improve a bit.

Drake
13 Jul, 2023, 17:14

cc @VincentGe

VincentGe
13 Jul, 2023, 17:21

🤣 what if I told you I didn't even know we had sentry support

VincentGe
13 Jul, 2023, 17:24

Marking for docs and for a twitter thread 🤣 If I didn't know, must be many others

D5
13 Jul, 2023, 17:35

And its sooo useful...

VincentGe
13 Jul, 2023, 17:36

🤣🤣 I'm literally trying to track down where the heck all the 500s are coming from

VincentGe
13 Jul, 2023, 17:36

As we speak

VincentGe
13 Jul, 2023, 17:37

It's a mini-mistery cause internal server error is not an acceptable error message

VincentGe
13 Jul, 2023, 17:37

anywhere

VincentGe
13 Jul, 2023, 17:38

Also just more clnt side/real time verification

VincentGe
13 Jul, 2023, 17:38

I shouldn't need to make a request before being yelled at that my phone number is formatted wrong

D5
13 Jul, 2023, 17:38

Yes, usually, most times I'm like, well, yes, I know it's a server error, but what I'm doing wrong? So that's why I started using sentry, and sincerely, one of the best features I have discovered

Binyamin
13 Jul, 2023, 17:39

Hahah Yes, like in many cases it does so much verifications and at the end its like "Oh, wait a second this is just 7 digits number wts?"

D5
13 Jul, 2023, 17:41
VincentGe
13 Jul, 2023, 17:41

🤣 we share your pain. The solution is just not trivial 🙃

Tessa
13 Jul, 2023, 21:35

[SOLVED] Enabling Sentry on self-hosted instance

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more