Enable APM Tracing¶
APM (Application Performance Monitoring) tracing is used to track the complete invocation path of requests in distributed systems.
It helps you:
- Analyze performance bottlenecks: Locate the time consumption of each step (service, component) in the call chain
- Diagnose errors and exceptions: Quickly identify errors occurring in the chain and their root causes
- Understand service dependencies: Visualize the invocation relationships between services
- Correlate monitoring data: Collaboratively analyze with logs, metrics, and other data to comprehensively troubleshoot issues
Integration Methods¶
TrueWatch APM supports the OpenTracing protocol. You can choose any of the following methods for integration.
Method 1: Data Collection via DataKit (Recommended)¶
DataKit is a one-stop data collector provided by TrueWatch, supporting multiple APM protocols.
- Install DataKit;
-
- Enable and configure the corresponding DataKit collector according to the protocol used by your application (e.g., DDTrace, Jaeger, OpenTelemetry, SkyWalking, Zipkin)
-
Start/Restart DataKit: DataKit will automatically collect trace data and report it to TrueWatch.
Method 2: Direct SDK Integration¶
You can directly integrate the APM SDK provided by TrueWatch into your application without using DataKit as an intermediary. Mainstream languages such as Java, Python, Go, Node.js, .NET, etc., are supported.
Refer to APM SDK for details on integrating SDKs in different languages.
View and Analyze Trace Data¶
After successful integration, you can use the following features to view and analyze APM trace data:
Feature | Scenario |
---|---|
Tracing | Query complete call chains, analyze duration (flame graph), locate error nodes |
Error Tracking | Aggregate and categorize errors, track error chains, analyze error stacks |
Service Analysis | Monitor key service metrics (throughput/delay/error rate), drill down to analyze issues |
Dashboard | Customize visualization of performance metrics (e.g., P90/P99 latency, error rate, call volume) |
Log Correlation | One-click correlation of logs from trace/error context for in-depth root cause analysis |
With these features, you can comprehensively understand application performance and quickly pinpoint issues.