When we have many services in the same flow, we want to defer the sampling logic to the parent service (which will defer to the root service in the end).
The PassiveSampler is really good for that, as it will only sample traces that have one external reference. This assumes that the parent service will send the trace info to stitch, if we should keep it, and won't, if we should discard it. This is what some of our services do already today, and it would really help us onboard to foundations!
When we have many services in the same flow, we want to defer the sampling logic to the parent service (which will defer to the root service in the end).
The PassiveSampler is really good for that, as it will only sample traces that have one external reference. This assumes that the parent service will send the trace info to stitch, if we should keep it, and won't, if we should discard it. This is what some of our services do already today, and it would really help us onboard to foundations!
This needs https://github.com/cloudflare/rustracing/pull/2 merged &
cf-rustracing
bumped in order to compile and work fine.