Correlate front-end and back-end requests: Link front-end user operations with backend API calls
End-to-end issue troubleshooting: Quickly locate issues in the complete request chain from front-end to back-end
Performance bottleneck analysis: Identify performance bottlenecks throughout the entire request chain
User experience optimization: Optimize user experience based on complete request chain data
1.
Front-end initiates request: The RUM SDK automatically adds trace header information to configured API requests
2.
Back-end receives and processes: Backend services receive and process requests with trace information
3.
Chain correlation: Front-end and back-end data are correlated through the same trace_id
4.
Visual display: View complete request chain information through trace correlation based on trace_id
trace-id: 128-bit trace ID, 32 characters after hexadecimal processing
parent-id: 64-bit span ID, 16 characters after hexadecimal processing
trace-flags: Sampling flag, 01
indicates sampled, 00
indicates not sampled
1.
Find the problematic user's session in the RUM Session Explorer
2.
View trace information for the problem page
3.
Jump to the trace system to view the complete request chain
4.
Determine whether it's a front-end, back-end, or network issue
Request URL is not within the allowedTracingUrls
configuration range
Request was filtered by traceSampleRate
sampling rate
Request was initiated before SDK initialization
Cross-origin requests lack necessary CORS configuration
1.
Privacy Compliance: Ensure trace data collection complies with relevant privacy regulations
2.
Performance Impact: Set reasonable sampling rates to avoid significant impact on application performance
3.
Data Security: Avoid including sensitive information in trace data
4.
Cross-Origin Configuration: Ensure backend services are properly configured with CORS to support trace headers