Skip to content

Commit

Permalink
test: get opentelemetry version from process
Browse files Browse the repository at this point in the history
PR-URL: #221
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
  • Loading branch information
santigimeno committed Jan 9, 2025
1 parent c3f5ecb commit e86064c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/agents/test-otlp-grpc-metrics.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ if (process.argv[2] === 'child') {
validateArray(resource.attributes, 'attributes');

const expectedAttributes = {
'telemetry.sdk.version': '1.16.0',
'telemetry.sdk.version': process.versions.opentelemetry,
'telemetry.sdk.language': 'cpp',
'telemetry.sdk.name': 'opentelemetry',
'service.instance.id': nsolidId,
Expand Down
2 changes: 1 addition & 1 deletion test/agents/test-otlp-metrics.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ if (process.argv[2] === 'child') {
validateArray(resource.attributes, 'attributes');

const expectedAttributes = {
'telemetry.sdk.version': '1.16.0',
'telemetry.sdk.version': process.versions.opentelemetry,
'telemetry.sdk.language': 'cpp',
'telemetry.sdk.name': 'opentelemetry',
'service.instance.id': nsolidId,
Expand Down
2 changes: 1 addition & 1 deletion test/common/nsolid-grpc-agent/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function checkResource(resource, agentId, config, metrics) {
validateArray(resource.attributes, 'attributes');

const expectedAttributes = {
'telemetry.sdk.version': '1.16.0',
'telemetry.sdk.version': process.versions.opentelemetry,
'telemetry.sdk.language': 'cpp',
'telemetry.sdk.name': 'opentelemetry',
'service.instance.id': agentId,
Expand Down

0 comments on commit e86064c

Please sign in to comment.