Adding debug to sentry.

This commit is contained in:
Samuel Clay 2021-03-17 10:05:26 -04:00
parent 4ae4d39526
commit 1ab0af2ef1
3 changed files with 6 additions and 3 deletions

View file

@ -15,7 +15,7 @@
- name: Reload node
become: yes
command: "docker kill --signal=HUP {{ item.container_name }}"
command: "docker restart {{ item.container_name }}"
when: item.target_host in inventory_hostname
with_items:
- container_name: node
@ -26,4 +26,6 @@
target_host: node-text
- container_name: node
target_host: node-favicons
- container_name: node
target_host: staging-web

View file

@ -23,8 +23,9 @@ if not ENV_DEV and not ENV_PROD and not ENV_DOCKER
throw new Error("Set envvar NODE_ENV=<development,docker,production>")
if ENV_PROD
Sentry.init({
Sentry.init
dsn: process.env.SENTRY_DSN,
debug: true,
integrations: [
new Sentry.Integrations.Http({ tracing: true }),
new Tracing.Integrations.Express({
@ -32,7 +33,6 @@ if ENV_PROD
})
],
tracesSampleRate: 1.0
})
app.use(Sentry.Handlers.requestHandler())
app.use(Sentry.Handlers.tracingHandler())

View file

@ -45,6 +45,7 @@
if (ENV_PROD) {
Sentry.init({
dsn: process.env.SENTRY_DSN,
debug: true,
integrations: [
new Sentry.Integrations.Http({
tracing: true