Back

Problem with adding self-hosted Sentry

  • 0
  • Self Hosted
  • General
Sławek
29 Oct, 2024, 23:47

Following the official Appwrite-Sentry integration documentation (https://appwrite.io/integrations/logging-sentry) I've configured my .env file with:

TypeScript
_APP_LOGGING_PROVIDER=sentry

After running:

TypeScript
docker compose exec appwrite vars

I observe:

TypeScript
_APP_LOGGING_CONFIG=123456;1;my.selfhosteed.sentry.url
_APP_LOGGING_PROVIDER=    # empty value

Upon investigating the docker-compose.yml in the main repository (https://github.com/appwrite/appwrite/blob/main/docker-compose.yml)
I noticed that _APP_LOGGING_PROVIDER is only defined in the "appwrite-worker-functions" service, while other services only have _APP_LOGGING_CONFIG defined.

Questions:

Is this the expected behavior? Should the Sentry logging provider be configured differently for the main Appwrite container? If this is correct, should the documentation be updated to clarify this configuration detail?

TL;DR
Issue with Sentry integration not capturing errors from Appwrite server. User discovered missing configuration in docker-compose file and raised questions regarding expected behavior and documentation clarification. Solution: The Appwrite team should update the documentation to clarify the configuration details for the Sentry logging provider in the main Appwrite container.
Sławek
29 Oct, 2024, 23:57

Additionally, according to the documentation, running:

TypeScript
docker compose exec appwrite ssl --domain="wrongdomain.com"

should generate and log an error in Sentry, but no error is being captured.

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