-
Notifications
You must be signed in to change notification settings - Fork 103
/
instrument.js
20 lines (19 loc) · 696 Bytes
/
instrument.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const { initSDK } = require('@hyperdx/node-opentelemetry')
const {
BullMQInstrumentation,
} = require('@jenniferplusplus/opentelemetry-instrumentation-bullmq')
const { KnexInstrumentation } = require('@opentelemetry/instrumentation-knex')
const {
IORedisInstrumentation,
} = require('@opentelemetry/instrumentation-ioredis')
const { KoaInstrumentation } = require('@opentelemetry/instrumentation-koa')
initSDK({
consoleCapture: true, // optional, default: true
advancedNetworkCapture: true, // optional, default: false
additionalInstrumentations: [
new BullMQInstrumentation(),
new IORedisInstrumentation(),
new KoaInstrumentation(),
new KnexInstrumentation(),
],
})