1 Answer
- Newest
- Most votes
- Most comments
0
Centralized sampling rules are stored in X-Ray service. X-Ray sdk in user application has to take time to poll it and this poll action is lazy initialization, triggered by the first segment. So, the first segment generated in user application will fall back to a local rule (1/sec + 5%), which means the first segment is always sampled.
X-Ray centralized sampling has some limits, it does not work well in such cases:
- Instrumented application's life is short. Centralized sampling rules is not ready to take effect.
- If user's fleet scale is large, poll centralized sampling rules and sync up status with X-Ray service would take more time.
The alternative solution is using local sampling rules.
answered 3 years ago
Relevant content
- asked 3 years ago
- asked 3 years ago
- AWS OFFICIALUpdated 3 years ago
