-
Notifications
You must be signed in to change notification settings - Fork 373
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
Remove child_of
option for trace
from options table in Getting Started guide
#1059
Conversation
From the current (0.36.0) implementation the `trace` method always overrides value of `child_of` hence not respecting anything that may be passed by the user: https://github.com/datadog/dd-trace-rb/blob/v0.36.0/lib/ddtrace/tracer.rb#L260 Removing the line from the table to remove confusion and misleading documentation
child_of
option for trace
child_of
option for trace
in documented options table
child_of
option for trace
in documented options tablechild_of
option for trace
in options table documentation
child_of
option for trace
in options table documentationchild_of
option for trace
from options table documentation
child_of
option for trace
from options table documentationchild_of
option for trace
from options table in Getting Started guide
@DocX Can you clarify why you saw this is the case? It's not my understanding that we intended to change this.... want to make sure there isn't actually a bug here. |
Hi @delner thank you for response. Please see the link to the code line above in the summary above. It shows that the :child_of parameter is not currently being respected. That said, I don't know if that is intended or it is bug. If the parameter should be respected then the code is wrong IMO. |
@DocX Looking at the history, it looks like We probably could change this to |
@delner makes sense :) Given it is documented that it should work - I assume there is a valid case for that. Even ourselves would benefit from it - we need to pass parent span across threads in some cases, and currently we do it with the But again, I don't have much context into the internals, so I cannot really tell you what is the thing to do. We just noticed the discrepancy between the docs and implementation, and it's up to you what is the best approach :) Thank you |
Fixing by #1082 |
I've created a formal feature proposal for first-class threading support: #1202 |
From the current (0.36.0) implementation the
trace
method always overrides value ofchild_of
hence not respecting anything that may be passed by the user: https://github.com/datadog/dd-trace-rb/blob/v0.36.0/lib/ddtrace/tracer.rb#L260Removing the line from the table to remove confusion and misleading documentation