-
Notifications
You must be signed in to change notification settings - Fork 296
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
[dd-trace 2.11.0] Missing tracking data #2223
Comments
Is the tracer initialized before any instrumented module is imported? This is a requirement for dd-trace to work properly and the behaviour is undefined and can change from version to version of it's not the case. This is usually the issue when spans for a specific integration are completely missing. If they are still reported but in a separate trace, then let me know as that would then be something else completely. |
@rochdev The tracer initializes before all other modules. Your location in the code has not changed with the version update.
Would you know if you have any attributes in the |
We have re-written the plugin system and in some cases it's more prone to issues when the tracer is not initialized in the right location, at least right now. Can you share your application entry point? I'd like to make sure there aren't any hard to detect issues like hoisting for example. |
@rochdev is there any way to enable debug in tracer to see if it connects well with the agent and sends data? |
@mariuszbeltowski Yes but it's extremely verbose, so it's recommended to enable it only to debug issues. This can be configured with |
@alvarofpp Were you able to solve the original issue? If not, can you try with 2.13.0? We made further changes to the plugin system that could hopefully fix the issue. Otherwise we'll definitely need a reproduction snippet. |
@rochdev I'll try |
@rochdev I resolved this by upgrading to version My entry point file looks like this: import dataDogTracer from 'dd-trace';
import express from 'express';
import winston from 'winston';
// ... some other lib imports
const logger = winston.createLogger({
// ...
});
dataDogTracer.init({
logInjection: true,
runtimeMetrics: true,
logger
});
// ... Given your comment above:
It seems to be working fine now, but do you think it's possible that I may have issues again with future versions of the library? |
@dyarleniber We plan to remove the initialization requirement from 4.0 completely, so for future versions it should be fine. The library will still need to be imported first, but can be initialized anywhere. There are already a few changes in 3.0 to make this work better, so you might just be benefiting from those improvements. |
I updated the dd-trace version to |
Context
I have a BFF that uses 'dd-trace' version
2.6.0
, this BFF communicates with various services. The problem occurs when I update the version of 'dd-trace' to2.11.0
.Expected behaviour
The tracer should show the request data, including the moments it interacts with other services. Example:
Actual behaviour
It is not showing interactions with other services.
Steps to reproduce
Take any application that is tracking requests from an endpoint, this application should interact with other services when this endpoint is called, update the version of dd-trace to
2.11.0
.Environment
Platform: GNU/Linux - CPU: Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz - Memory: 16.46G
v16.15.1
2.6.0
and2.11.0
v7.32.4
4.17.1
The text was updated successfully, but these errors were encountered: