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

How to Start with otel in nodejs #56

Merged
merged 1 commit into from
Apr 7, 2020
Merged

Conversation

gianarb
Copy link
Owner

@gianarb gianarb commented Apr 5, 2020

No description provided.

"@opentelemetry/exporter-jaeger": "^0.5.0",
"@opentelemetry/node": "^0.5.0",
"@opentelemetry/plugin-http": "^0.5.0",
"@opentelemetry/plugin-dns": "^0.5.0",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a problem with the dns plugin (see open-telemetry/opentelemetry-js#612), i wouldn't recommend to use it


const logger = require('pino')()

// Import and initialize the tracer

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important to note that it generally need to be the first module to be required in your application otherwise some automatic instrumentation might not work

@gianarb gianarb force-pushed the article/now-otel-nodejs branch from ba94cf6 to dd43e85 Compare April 5, 2020 19:51
@gianarb gianarb merged commit 6b781af into master Apr 7, 2020
@gianarb gianarb deleted the article/now-otel-nodejs branch April 7, 2020 13:46
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

Successfully merging this pull request may close these issues.

2 participants