From d831961e55f9b3875799b0c72d11995c035d8260 Mon Sep 17 00:00:00 2001 From: Ian Lovell <102812633+ianlnf@users.noreply.github.com> Date: Mon, 27 Jan 2025 11:52:04 +0000 Subject: [PATCH] build: add namespace (#699) --- server/instrumentation.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/instrumentation.js b/server/instrumentation.js index 3bec669..2896a7c 100644 --- a/server/instrumentation.js +++ b/server/instrumentation.js @@ -57,7 +57,8 @@ const sdk = new NodeSDK({ resource: new Resource({ [ATTR_SERVICE_NAME]: 'optic', [ATTR_SERVICE_VERSION]: pkg.version, - 'deployment.environment': environment + 'deployment.environment': environment, + 'service.namespace': 'optic' }), resourceDetectors: [envDetector, processDetector, hostDetector], traceExporter: new OTLPTraceExporter({