You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have installed the packages (api and auto-instrumentations-node) - setup the ENV varaibles, and then tried to build and package my application for deployment.
The issue is that the node_modules do not include the above packages, so the command --require @opentelemetry/auto-instrumentations-node/register fails with the missing dependency.
I realise that the point of the auto-instrumentations-node library is to instrument without code changes (which is my desire), but how can I ensure that these packages are installed with the build?
Thanks
The text was updated successfully, but these errors were encountered:
Hello eveyone,
I have been trying to setup some instrumentation on my nextjs web app and have been following the documentation on the Grafana website: https://grafana.com/docs/grafana-cloud/monitor-applications/application-observability/instrument/node/
I have installed the packages (api and auto-instrumentations-node) - setup the ENV varaibles, and then tried to build and package my application for deployment.
However, my build command for nextjs runs in 'standalone' mode (https://nextjs.org/docs/pages/api-reference/next-config-js/output#automatically-copying-traced-files) so it can be packaged and deployed into my cloud environment.
The issue is that the node_modules do not include the above packages, so the command
--require @opentelemetry/auto-instrumentations-node/register
fails with the missing dependency.I realise that the point of the auto-instrumentations-node library is to instrument without code changes (which is my desire), but how can I ensure that these packages are installed with the build?
Thanks
The text was updated successfully, but these errors were encountered: