Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure Sentry #3889

Open
jmijn opened this issue Mar 16, 2022 · 1 comment
Open

Configure Sentry #3889

jmijn opened this issue Mar 16, 2022 · 1 comment
Labels

Comments

@jmijn
Copy link

jmijn commented Mar 16, 2022

I wanted to configure Talk to use our Sentry for error reporting. There is no documentation about how to configure Sentry for Talk, but i saw in the code that it is actually integrated and configurable using these ENV vars:

SENTRY_FRONTEND_KEY: 
SENTRY_BACKEND_KEY:

I entered my DSN urls here, but nothing shows up in Sentry. I can't find where to set the loglevel, but by default it should be level INFO. If i check the logs on the pod running Talk, i see these logs for example:

{"name":"coral","hostname":"nunl-talk2022-app-5874dbccdf-6wwlx","pid":1,"level":30,"port":9000,"path":"/metrics","msg":"now listening for metrics","time":"2022-03-16T14:01:13.924Z","src":{"file":"/usr/src/app/src/core/server/index.ts","line":331,"func":"process"},"v":0}
{"name":"coral","hostname":"nunl-talk2022-app-5874dbccdf-6wwlx","pid":1,"env":"production","forceSSL":false,"level":40,"msg":"FORCE_SSL=true should be set when a SSL terminating proxy has been configured","time":"2022-03-16T14:01:13.927Z","src":{"file":"/usr/src/app/src/core/server/app/index.ts","line":245,"func":"configureApplicationHTTPS"},"v":0}

I would have expected these logs to appear in Sentry, but they don't.

If i add this line in the sentry.ts file, after the init, i do see the message in Sentry:
Sentry.captureMessage("Something went wrong");
This means Sentry is correctly initialized and configured.
I debugged the options.offlineDebug flag, and it is false in our env, so the FakeDebugTransport is not used.

Expected behavior:
Setting the following ENV vars should enable logging to Sentry:

SENTRY_FRONTEND_KEY: 
SENTRY_BACKEND_KEY:

Actual behavior:
Nothing is logged in Sentry

Related Issues:
None

Versions:

  • NodeJS: 14
  • NPM: 8
@jmijn jmijn added the bug label Mar 16, 2022
@Shubhamsharma585
Copy link

Hi @jmijn I am a coral user. Have you deployed coral on the sub-directory? Can you please suggest a way to use coral on the sub-dire as

'http://127.0.0.1:5000/${path}' ==> 'http://127.0.0.1:5000/discussions/${path}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants