-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
UpdateName
doesn't trigger sampling decision if the span is not sampled when created.
#224
Comments
This suggests that the sampling APIs for up-front sampling and tail-sampling ought to be different. |
As posted in gitter,
|
I agree with you @jmacd, I think this should be covered with the open-telemetry/opentelemetry-specification#307? Do you think that raising these questions there is sufficient for this issue being resolved? |
Thanks @paivagustavo. I see we both just updated the spec issue 307. 😄 |
@Aneurysm9 to look at this. |
@jmacd is this still an issue? I don't see an |
Yes @Aneurysm9, if a span was not sampled when started, it's |
Gotcha @paivagustavo. I think I'm in agreement with you and @jmacd then, given the discussion on open-telemetry/opentelemetry-specification#307, that this SDK should implement the simple sampling behavior and thus Given that this is blocked on the spec and the issue over there is in the v0.5 milestone, we should probably move this out of our v0.3 milestone. |
…MemStatsInterval() configuration options (#224) * Pass metric.Provider to runtime.Start; make interval param an Option * Add more tests * Address feedback * More comments * More comments * Apply instrumentation version Co-authored-by: Tyler Yahn <[email protected]>
With #1360, the If it's the case that |
With the goal of forwards compatibility, let's remove this. We can add it back later in a backwards compatible manner. |
Currently, when create a
Span
we run themakeSamplingDecision
. If the span issampled
, we createexport.SpanData
,attributes
,events
andlinks
base from the SpanOptions. If it was not sampled we just ignored this all.As per specs,
UpdateName
should re-trigger themakeSamplingDecision
. Because of the current implementation, if aSpan
has not been sampled from the first time it contains a simpler noopSpan
(e.g., trying to addLinks
,Events
orChilds
would be ignored on the noopSpan
sinceisRecording
would return false). Trying to trigger amakeSamplingDecision
on this noopSpan
will return false and not even call the sampler.To accommodate this behavior we would need to create "complete"
Span
for every single span. This would increase drastically the amount of resources needed by the otel, even with aNeverSample
.The solution is easily implemented but the consequences should be discussed.
This is a follow up from the comment of #223.
The text was updated successfully, but these errors were encountered: