We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f91079 commit 505588bCopy full SHA for 505588b
packages/datadog-instrumentations/src/google-cloud-pubsub.js
@@ -5,13 +5,15 @@ const {
5
addHook
6
} = require('./helpers/instrument')
7
const shimmer = require('../../datadog-shimmer')
8
+const log = require('../../dd-trace/src/log')
9
10
// Auto-load push subscription plugin to enable pubsub.delivery spans for push subscriptions
11
try {
12
const PushSubscriptionPlugin = require('../../datadog-plugin-google-cloud-pubsub/src/pubsub-push-subscription')
13
new PushSubscriptionPlugin(null, {}).configure({})
-} catch {
14
+} catch (e) {
15
// Push subscription plugin is optional
16
+ log.debug(`PushSubscriptionPlugin not loaded: ${e.message}`)
17
}
18
19
const requestStartCh = channel('apm:google-cloud-pubsub:request:start')
0 commit comments