View Traces in Jaeger
Once you've started the gateway with the tracing profile, follow these steps to view distributed traces:
Step 1: Access Jaeger UI
Open your browser and navigate to:
http://localhost:16686
Step 2: Search for Traces
The Jaeger UI provides several ways to search for traces:
-
Select a Service from the dropdown:
policy-engine- View traces from the policy enginerouter- View traces from the Envoy router
-
Select an Operation (optional):
- Choose "all" to see all operations
- Or select a specific operation (e.g., specific policy execution)
-
Adjust Lookback Time Range:
- Default: Last 1 hour
- Options: 5m, 15m, 1h, 6h, 12h, 1d, 2d, Custom
-
Add Filters (optional):
- Tags: Filter by specific tag values (e.g.,
http.status_code=500) - Min/Max Duration: Filter by trace duration
- Limit Results: Control number of traces returned (default: 20)
- Tags: Filter by specific tag values (e.g.,
-
Click Find Traces
Step 3: Analyze Trace Details
Click on any trace in the results to view detailed information:
Trace Timeline
- Visual timeline showing all spans in the trace
- Duration bars showing relative time spent in each operation
- Parent-child relationships between spans
- Color coding by service
Span Details
Click on any span to see:
- Operation name: What operation was performed
- Duration: How long it took
- Tags: Metadata about the operation (HTTP method, status code, etc.)
- Logs: Events logged during the span (errors, warnings, etc.)
- Process: Service name, version, and host information
Common Use Cases
Finding Slow Requests:
- Set Min Duration filter (e.g., 1000ms)
- Click Find Traces
- Examine spans to identify bottlenecks
Debugging Errors:
- Filter by tag:
error=trueorhttp.status_code=500 - Click on error traces
- Examine span logs and tags for error details
Understanding Request Flow:
- Search for a specific trace ID (from logs or headers)
- View the complete request path through all components
- Identify which component handled which part of the request
Step 4: Trace Comparison
You can compare multiple traces to identify patterns:
- Select multiple traces using checkboxes
- Click Compare Traces button
- View side-by-side comparison of trace structure and timings
Step 5: Service Dependency Graph
View how services interact:
- Click Dependencies in the top navigation
- Select time range
- View graph showing service-to-service communication patterns
Was this page helpful?