Back

[SOLVED] Setup sentry in Appwrite

  • 0
  • Self Hosted
D5
9 Jul, 2023, 14:54

Yes

TL;DR
- User is discussing the benefits of using Sentry for error reporting in an app. - User encounters an error related to a table not found in the database. - User asks for help with setting up Sentry in their Appwrite app. - Solution: User is advised to extract the ORG and PROJECT parameters from their Sentry project page and add them to their `.env` file with the `_APP_LOGGING_CONFIG` parameter. A link is provided for reference.
D5
9 Jul, 2023, 14:55

Or at least that's what docs says, it's App ID, not project ID

Binyamin
9 Jul, 2023, 14:59

Okay, You can see here https://github.com/utopia-php/logger/blob/main/src/Logger/Adapter/Sentry.php#L16 And here https://github.com/utopia-php/logger/blob/main/src/Logger/Adapter/Sentry.php#L21

What part should be inserted into the final string

TypeScript
_APP_LOGGING_CONFIG=FIRST;SECOND
Binyamin
9 Jul, 2023, 14:59

I've did it and just got my first sentry

D5
9 Jul, 2023, 15:00

But in sentry, where are those params?

D5
9 Jul, 2023, 15:00

I'm searching and can't find them

Binyamin
9 Jul, 2023, 15:02

Go to this url

TypeScript
https://[ORG].sentry.io/projects/[PROJECT]/getting-started/

Replace

  • [ORG] - with your organization name
  • [PROJECT] - with your project name

And you'll see this

D5
9 Jul, 2023, 15:03

And what of those are the corresponding parameters?

D5
9 Jul, 2023, 15:03

Furs and second in the URL?

Binyamin
9 Jul, 2023, 15:04

Yes, Extarct those who I've named FIRST and SECOND And put them in your .env file and separate them using a semicolon ;

TypeScript
_APP_LOGGING_CONFIG=FIRST;SECOND
Binyamin
9 Jul, 2023, 15:05

You mean the ORG and the PROJECT?

Binyamin
9 Jul, 2023, 15:05

You'll find them when you're viewing your main sentry project page

D5
9 Jul, 2023, 15:22

Seems that now works. Without making anything, im getting the error

D5
9 Jul, 2023, 15:22

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'appwrite._2__metadata' doesn't exist sync_project_2_metric_project.$all.network.requests

D5
9 Jul, 2023, 15:22

Is there something wrong or what

Binyamin
9 Jul, 2023, 15:24

It seems like there's a double __ in between the 2 and the metadata

Binyamin
9 Jul, 2023, 15:24

This is not usually the case.

Binyamin
9 Jul, 2023, 15:24

Maybe it's something that left behind from an older versions?

D5
9 Jul, 2023, 15:24

Nope, clean install. I think it's not related to the main issue?

D5
9 Jul, 2023, 15:25

Will open then another thread

D5
9 Jul, 2023, 15:26

[SOLVED] Setup sentry in Appwrite

D5
9 Jul, 2023, 15:27

Apparently It seems like this was caused due to docker rebuild

D5
9 Jul, 2023, 15:36

Wow, it's really useful using Sentry, made 2 errors in a function intentionally and got where it was the error, unlike the one shown directly in the console

Binyamin
9 Jul, 2023, 15:36

Yes, you get much more detailed error.

Drake
9 Jul, 2023, 19:43

Sentry is <:appwritefire:823999000330895380>

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