Recommended Approach
Main Orchestrating Application
Set the sampling method in your primary service that initiates requests:All Other Microservices
Configure downstream services to inherit the sampling decision from the main application:How This Works
- Parent-based sampling: The
ParentBased(ALWAYS_ON)
sampler checks if there’s a parent span from another service - Inheritance: If a parent span exists and was sampled, the child service will also sample
- Consistency: This ensures that either the entire distributed trace is sampled or none of it is