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

JS specific pentelemetry/instrumentation #1835

Closed
SinghS99 opened this issue Nov 29, 2023 · 1 comment
Closed

JS specific pentelemetry/instrumentation #1835

SinghS99 opened this issue Nov 29, 2023 · 1 comment

Comments

@SinghS99
Copy link

node --require @opentelemetry/auto-instrumentations-node/register index.js
Unable to initialize instrumentation for lambda. Cannot identify lambda handler or task root. { taskRoot: undefined, handlerDef: undefined }
@opentelemetry/instrumentation-grpc Module @grpc/grpc-js has been loaded before @opentelemetry/instrumentation-grpc so it might not work, please initialize it before requiring @grpc/grpc-js
OTEL_TRACES_EXPORTER is empty. Using default otlp exporter.
OpenTelemetry automatic instrumentation started successfully

@pichlermarc
Copy link
Member

node --require @opentelemetry/auto-instrumentations-node/register index.js Unable to initialize instrumentation for lambda. Cannot identify lambda handler or task root. { taskRoot: undefined, handlerDef: undefined }

This is #1774

@opentelemetry/instrumentation-grpc Module @grpc/grpc-js has been loaded before @opentelemetry/instrumentation-grpc so it might not work, please initialize it before requiring @grpc/grpc-js

This is open-telemetry/opentelemetry-js#4151, I'm working on this. PR to follow soon.

OTEL_TRACES_EXPORTER is empty. Using default otlp exporter.

You can set the exporter specifically using the OTEL_TRACES_EXPORTER environment variable, then this log will go away. (I highly recommend this, it's better to be explicit with this config, it fits the definition of its log level - code may continue to work, but it's unconfigured and may cause problems for your specific setup).

OpenTelemetry automatic instrumentation started successfully

This is an info log. I think this is fine.
If the logging is too verbose, you can also set the OTEL_LOG_LEVEL env var to WARN or ERROR.

Since we already have issues for this I'm closing this as a duplicate, feel free to comment if you disagree - happy to re-open the issue then.

@pichlermarc pichlermarc closed this as not planned Won't fix, can't repro, duplicate, stale Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants