Ability to access parent span metadata during sampling. #886
Labels
M-sdk
release:required-for-stable
Must be resolved before GA release, or nice to have before GA.
S-blocked-spec
Status: Blocked on open or unresolved spec
triage:todo
Needs to be traiged.
Milestone
I am attempting to simple my traces and add sampling information to them so that they can be correctly weighted when analyzed. I have code that is mostly working:
However this only works correctly for top-level spans or spans that are children of unsampled spans. Notably the child of a span that is sampled 1/2 of the time should also have a
sampleRate: 2
attribute applied so that it can be weighted correctly in analysis. However as far as I can tell there is no way to implement this using the current sampling infrastructure as you can't access any information from the parent span other than its trace ID.The text was updated successfully, but these errors were encountered: