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

Set Up Data Collection for SAP Cloud ALM in a CAP Application: Installation of @sap/fesr-to-otel-js fails as it is not read from the private SAP repository #122

Open
gregorwolf opened this issue Nov 16, 2024 · 0 comments

Comments

@gregorwolf
Copy link

Hello SAP BTP CAP Developer Guide Team,

from the page OpenTelemetry@SAP I was pointed to Enable Data Collection for Real User Monitoring and Health Monitoring. I did the setup as described for the Repository-Based Shipment Channel.

npm install @opentelemetry/api @opentelemetry/exporter-logs-otlp-grpc @sap/fesr-to-otel-js @sap/xotel-agent-ext-js cf-nodejs-logging-support hdb

It fails with the following error:

npm error code E404
npm error 404 Not Found - GET https://registry.npmjs.com/@sap%2ffesr-to-otel-js - Not found
npm error 404
npm error 404  '@sap/fesr-to-otel-js@*' is not in this registry.
npm error 404
npm error 404 Note that you can also install from a
npm error 404 tarball, folder, http url, or git ur

as the @sap/fesr-to-otel-js package is not found in the Public NPM Repository. When I try to fix this by adding:

@sap:registry=https://73555000100200018064.npmsrv.cdn.repositories.cloud.sap/

to .npmrc I can install @sap/fesr-to-otel-js and @sap/xotel-agent-ext-js but an installation of @sap/cds fails:

npm error code E404
npm error 404 Not Found - GET https://73555000100200018064.npmsrv.cdn.repositories.cloud.sap/@sap%2fcds - Package '@sap/cds' not found
npm error 404
npm error 404  '@sap/cds@^7' is not in this registry.
npm error 404
npm error 404 Note that you can also install from a
npm error 404 tarball, folder, http url, or git url.

So it seems that the better solution is to follow the instructions of Autoinstrumentation for Node.js and FESR Receiver for Node.js and add this lines to the dependencies in the package.json manually:

    "@sap/xotel-agent-ext-js": "https://73555000100200018064.npmsrv.cdn.repositories.cloud.sap/@sap/xotel-agent-ext-js/-/xotel-agent-ext-js-1.5.19.tgz",
    "@sap/fesr-to-otel-js": "https://73555000100200018064.npmsrv.cdn.repositories.cloud.sap/@sap/fesr-to-otel-js/-/fesr-to-otel-js-1.5.10.tgz"

I would suggest that you either trigger a change in the namespace of the packages @sap/fesr-to-otel-js and @sap/xotel-agent-ext-js or you adjust the documentation.

Best Regards
Gregor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant