Skip to content

Commit

Permalink
build: add namespace (#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlnf authored Jan 27, 2025
1 parent 62f60e4 commit d831961
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/instrumentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit d831961

Please sign in to comment.