Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenTelemetry/API Error: Registration of version v1.9.0 for propagation does not match previously registered API v1.7.0 #220

Closed
sandeepharidasan opened this issue Aug 26, 2024 · 2 comments
Labels

Comments

@sandeepharidasan
Copy link

Hi,
With the latest version of the telemetry plugin, we are getting this error:

"level": "error",
"logger": "telemetry",
"timestamp": "2024-08-20T10:33:05.022Z",
"msg": "Error: @opentelemetry/api: Registration of version v1.9.0 for propagation does not match previously registered API v1.7.0",
"stack_trace": [
"at registerGlobal (/usr/src/srv/node_modules/@opentelemetry/api/build/src/internal/global-utils.js:38:21)",
"at PropagationAPI.setGlobalPropagator (/usr/src/srv/node_modules/@opentelemetry/api/build/src/api/propagation.js:52:50)",
"at NodeTracerProvider.register (/usr/src/srv/node_modules/@opentelemetry/sdk-trace-base/build/src/BasicTracerProvider.js:100:31)",
"at NodeTracerProvider.register (/usr/src/srv/node_modules/@opentelemetry/sdk-trace-node/build/src/NodeTracerProvider.js:43:15)",
"at module.exports (/usr/src/srv/node_modules/@cap-js/telemetry/lib/tracing/index.js:123:20)",
"at module.exports (/usr/src/srv/node_modules/@cap-js/telemetry/lib/index.js:36:26)",
"at Object.<anonymous> (/usr/src/srv/node_modules/@cap-js/telemetry/cds-plugin.js:12:31)",
"at Module._compile (node:internal/modules/cjs/loader:1364:14)",
"at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)",
"at Module.load (node:internal/modules/cjs/loader:1203:32)"
]

I believe this might be caused by the update of @cap-js/telemetry dependency from v0.2.3 to v1.0.1
CAP-TELEMETRY-PR: #208

We were also able to locally see the error after running npm run start
image

npm list @opentelemetry/api provides the below output with the version conflict
image

Could you please check and advise how this can be rectified.

Thanks and regards,
Sandeep

@github-actions github-actions bot added the new label Aug 26, 2024
@yevgentrukhin
Copy link

don't have this problem, can u add in package.json dependency to 1.9.0 opentelemetry api.

@sjvans
Copy link
Contributor

sjvans commented Sep 9, 2024

looks like you'll need to upgrade to @opentelemetry/[email protected]

@sjvans sjvans closed this as completed Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants
@yevgentrukhin @sjvans @sandeepharidasan and others