diff --git a/server/instrumentation.js b/server/instrumentation.js index df92a41..21c9607 100644 --- a/server/instrumentation.js +++ b/server/instrumentation.js @@ -76,12 +76,13 @@ const sdk = new NodeSDK({ Authorization: authorizationHeader } }) - }), - instrumentations: registerInstrumentations({ - instrumentations: getNodeAutoInstrumentations() }) }) +registerInstrumentations({ + instrumentations: getNodeAutoInstrumentations() +}) + if (diagnosticsEnabled) { console.log('Grafana OTLP diagnostics enabled.') diag.setLogger(new DiagConsoleLogger(), DiagLogLevel.VERBOSE)