Comments (7)
@gajus We've since added default startup logs in addition to debug logging: https://docs.datadoghq.com/tracing/troubleshooting/tracer_startup_logs/?tab=nodejs#startup-logs please reach out if you have any other questions!
from dd-trace-js.
Never mind, it looks like you have a {debug: true}
configuration.
https://docs.datadoghq.com/tracing/setup/nodejs/#debug-mode
It would be handy to have all of this in README.md.
Generally, configuration such as debug/ logging should be controlled using environment variables rather than application variables. This way, a system admin can enable/ disable these settings without the need to redeploy the app.
from dd-trace-js.
Either way, looks like enabling debug does not log anything of value with regards to plugin loading issues.
from dd-trace-js.
You can also set your own logger by using the logger option
Please let me know if you think anything is missing from the debug logs! We went with a minimal approach to start and only logged the components that are the most difficult to debug.
Currently which plugin is loaded is not included, but I agree it would be very helpful.
Are you importing express
and pg
before initializing the tracer? This is usually the only reason a plugin would not be loaded. Also note that hoisting can happen when transpiling with Babel.
from dd-trace-js.
Actually the version could also be a cause, and this should be logged as well if there is a version mismatch.
from dd-trace-js.
Either way, looks like enabling debug does not log anything of value with regards to plugin loading issues.
There is DD_TRACE_DEBUG
setting.
https://github.com/DataDog/dd-trace-js/blob/master/src/config.js#L11-L20
from dd-trace-js.
Actually the version could also be a cause, and this should be logged as well if there is a version mismatch.
That is the case indeed. Yes, this should be logged.
from dd-trace-js.
Related Issues (20)
- datadog-plugin-graphql is not validating if directives is an array HOT 5
- Cypress tests not reporting correctly in CI Testing Visibility with `cypress-fail-fast` HOT 24
- Timeout Errors not Displayed in Datadog Dashboard Despite Successful Reporting with DD_TRACE_DEBUG HOT 9
- Segmentation for monorepos HOT 5
- Official DD-tracer Document should be updated to point out `none` OF DBM option is replaced with value `disabled` HOT 2
- Unhandled rejection thrown with Mongodb 6.4.0 HOT 1
- Add tags to the Service Entry Span in Middleware HOT 1
- How to trace jest with custom environment HOT 1
- Code that outputs neverthrow ResultAsync promise-like objects cannot be traced or wrapped
- Dogstatsd is undefined during jest tests HOT 7
- Added histogram method to dogstatsd
- Difficulties adding TAGS to test executions in CI Test Visibility HOT 6
- How to trace full request from service A to service B via TCP transport in NEST JS?
- Continuous profiling not working with NextJS instrumentation HOT 3
- Cannot construct a Request with a Request object that has already been used HOT 18
- `child_process` missing from plugin types in TS headers
- `child_process` plugin picks up shell commands not triggered by the traced process
- Error with ESM support when using the `openai` package
- Missing decrement function in NoopDogStatsDClient
- Memory Leak in dd-trace http plugin HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dd-trace-js.