-
Notifications
You must be signed in to change notification settings - Fork 842
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
chore: remove SpanOptions.isRecording #817
chore: remove SpanOptions.isRecording #817
Conversation
Remove SpanOptions.isRecording as it seems to be quite usless and I found only Span.isRecording in spec. Also Java seems to have no such option for span creation.
Codecov Report
@@ Coverage Diff @@
## master #817 +/- ##
===========================================
- Coverage 92.63% 62.02% -30.62%
===========================================
Files 244 71 -173
Lines 10774 1630 -9144
Branches 1064 235 -829
===========================================
- Hits 9981 1011 -8970
+ Misses 793 619 -174
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, however span.isRecording()
is not getting used anywhere in the code. Same with Java's implementation. Any idea?
@mayurkale22 not sure why |
I have two thoughts regarding
|
The
This seems to imply to me that you may want to have a span that is |
Default SDK decides on sampling durnig |
I agree about lazy sampling, although it is of marginal value because you need to send some sampled flag with an outgoing request anyway. The text I quoted from the spec clearly states that having a |
The sampling flag section in W3C trace context contains mainly SHOULD and MAY.
As far as I remember quite some parts were copied from OpenTracing/OpenCensus and not everything has been 100% consolidated/repolished. Most likely it would make sense to improve spec regarding this before moving to beta to ensure a consistent implementation across techs. |
After conversations with spec maintainers, it seems they want noop spans to return false for this, and "working" spans to return true regardless of if they are sampled. This allows for delayed sampling decisions and other statistics gathering beyond sending the spans to a tracing backend. edit: to be clear, that is the behavior of |
Seems HttpPlugin tests are flaky. Should I do a dummy commit to retrigger CI? Or how is this handled in general?
|
I just retriggered the failed build for you. I think we should take some time to clean up flaky tests. There is also a dns test that is an issue. |
I think this is good to merge, please resolve the conflicts. |
done |
Do you mean that you want to remove integretion tests? Because it’s network issue. |
Remove SpanOptions.isRecording as it seems to be quite useless and I found only Span.isRecording in spec. Also Java seems to have no such option for span creation.
…metry#817) * fix: `--include-filtered-dependencies` -> `--include-dependencies` lerna/lerna@f2c3a92 * fix: remove deprecated lerna field from lerna.json
…metry#817) * fix: `--include-filtered-dependencies` -> `--include-dependencies` lerna/lerna@f2c3a92 * fix: remove deprecated lerna field from lerna.json
…metry#817) * fix: `--include-filtered-dependencies` -> `--include-dependencies` lerna/lerna@f2c3a92 * fix: remove deprecated lerna field from lerna.json
Which problem is this PR solving?
Fixes: #811
Short description of the changes
Remove SpanOptions.isRecording as it seems to be quite usless and I found
only Span.isRecording in spec.
Also Java seems to have no such option for span creation.