Nick: only enable hyper dx in prod
This commit is contained in:
parent
a8ff295977
commit
229b9908d2
@ -50,7 +50,9 @@ const HOST = process.env.HOST ?? "localhost";
|
|||||||
redisClient.connect();
|
redisClient.connect();
|
||||||
|
|
||||||
// HyperDX OpenTelemetry
|
// HyperDX OpenTelemetry
|
||||||
|
if(process.env.ENV === 'production') {
|
||||||
initSDK({ consoleCapture: true, additionalInstrumentations: []});
|
initSDK({ consoleCapture: true, additionalInstrumentations: []});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
export function startServer(port = DEFAULT_PORT) {
|
export function startServer(port = DEFAULT_PORT) {
|
||||||
|
@ -7,7 +7,9 @@ import { callWebhook } from "./webhook";
|
|||||||
import { logJob } from "./logging/log_job";
|
import { logJob } from "./logging/log_job";
|
||||||
import { initSDK } from '@hyperdx/node-opentelemetry';
|
import { initSDK } from '@hyperdx/node-opentelemetry';
|
||||||
|
|
||||||
|
if(process.env.ENV === 'production') {
|
||||||
initSDK({ consoleCapture: true, additionalInstrumentations: []});
|
initSDK({ consoleCapture: true, additionalInstrumentations: []});
|
||||||
|
}
|
||||||
|
|
||||||
getWebScraperQueue().process(
|
getWebScraperQueue().process(
|
||||||
Math.floor(Number(process.env.NUM_WORKERS_PER_QUEUE ?? 8)),
|
Math.floor(Number(process.env.NUM_WORKERS_PER_QUEUE ?? 8)),
|
||||||
|
Loading…
Reference in New Issue
Block a user