-
Notifications
You must be signed in to change notification settings - Fork 98
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
Spans when using scatter gather are not collected #884
Comments
Oh wait would #872 fix this? |
Hi @jacktuck -- we have a Let us know if that doesn't work! |
@kjin Thanks for the reply. That does now work in the sense foo and bar get traced. But bar is not a child of foo like i thought it should be. |
From the server's point of view, the two different requests are completely independent (it has no awareness that the client logically treats one as being a continuation of the other), so the traces from the server reflect this. The client doesn't send any trace data because we don't trace top-level outgoing requests. To form a true parent-child relationship, the |
@kjin That makes sense. Thanks for the detailed explanation. |
When using scatter gather in the client it looks like spans are not collected for subsequent calls. Not only are A and B not associated, B is not collected at all. I thought async hooks were used to associated these types of patterns?
If the client requests /foo and /bar in the same promise context i'd expect them to be collected but only /foo is.
Whereas If I have a client request to just /foo and /foo calls /bar in server, i do see both.
In my test i'm using node
v9.4
, the server is usingrestify
, and the client is usingaxios
for requests. I do see traces for subcalls just not when the client is making the subcall rather than the server. Also theprojectId
is i was testing isseventh-odyssey-219220'
and last traces are about 24hrs old.Is this a known issue?
client.js
server.js
The text was updated successfully, but these errors were encountered: