mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #3412 from omnivore-app/fix/sentry-tracing
fix: init sentry sdk to disable tracing warning in cloud logs
This commit is contained in:
commit
5a50986e6d
2 changed files with 10 additions and 0 deletions
|
|
@ -34,6 +34,11 @@ interface Envelope {
|
|||
|
||||
const signToken = promisify(jwt.sign)
|
||||
|
||||
Sentry.GCPFunction.init({
|
||||
dsn: process.env.SENTRY_DSN,
|
||||
tracesSampleRate: 0,
|
||||
})
|
||||
|
||||
const NEWSLETTER_EMAIL_RECEIVED_TOPIC = 'newsletterEmailReceived'
|
||||
const NON_NEWSLETTER_EMAIL_TOPIC = 'nonNewsletterEmailReceived'
|
||||
const pubsub = new PubSub()
|
||||
|
|
|
|||
|
|
@ -9,6 +9,11 @@ const signToken = promisify(jwt.sign)
|
|||
|
||||
dotenv.config()
|
||||
|
||||
Sentry.GCPFunction.init({
|
||||
dsn: process.env.SENTRY_DSN,
|
||||
tracesSampleRate: 0,
|
||||
})
|
||||
|
||||
interface PubSubRequestMessage {
|
||||
data: string
|
||||
publishTime: string
|
||||
|
|
|
|||
Loading…
Reference in a new issue