From 6c7561c7a8a0c03510e009fe68d7d21bb28f531f Mon Sep 17 00:00:00 2001 From: Ian Lovell <102812633+ianlnf@users.noreply.github.com> Date: Mon, 27 Jan 2025 08:46:58 +0000 Subject: [PATCH] build: update registration (#694) --- server/instrumentation.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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)