Trace Data Collection¶
TrueWatch's trace data collection currently supports collectors that use the Opentracing protocol. After enabling the trace data receiving service in DataKit and completing collector instrumentation in your code, DataKit automatically converts and collects the data, and ultimately reports it to TrueWatch.
Data Collection¶
DataKit currently supports collecting third-party tracing data such as DDTrace, Apache Jaeger, OpenTelemetry, Skywalking, and Zipkin.
For new APM integrations, it is recommended to use Beacon first, and receive trace data through the DataKit OpenTelemetry collector.
Prerequisites¶
-
Configure all collectors related to trace data collection.
Collector Configuration¶
-
This language also includes the following information:
Field Descriptions¶
Depending on the collector, DataKit converts the reported data into the TrueWatch trace data format, preserving tags and metrics. The following are the commonly used field descriptions:
| Field Name | Description |
|---|---|
host |
Host name, defaults to the global tag |
source |
The source of the trace. For example, this value is zipkin if collected via Zipkin, jaeger if collected via Jaeger, and so on |
service |
The service name. It is recommended to use this tag to specify the name of the business system that generated the trace data |
parent_id |
The ID of the previous span of the current span |
operation |
The operation name of the current span, also understood as the Span name |
span_id |
The unique ID of the current span |
trace_id |
The unique ID of the current trace |
span_type |
The Span type. Currently supported: entry, local, exit, unknow entry span indicates a span created when entering a service, that is, the endpoint where the service provides call requests to other services. Most spans should be entry spans. Only calls where the span is of the entry type are independent requests local span indicates a span that has no relationship with remote calls. It is a span created during local method calls, for example, an ordinary Java method exit span indicates a span created when leaving a service, for example, when a remote call is initiated or when a message queue produces a message unknow span indicates an unknown Span |
endpoint |
The target address of the request, that is, the network address used by the client to access the target service, such as 127.0.0.1:8080. Default: null |
message |
The raw data collected before trace conversion |
duration |
The duration of the current trace span |
status |
Trace status: info (informational), warning (warning), error (error), critical (critical), ok (success) |
env |
The environment to which the trace belongs. For example, dev can be used for the development environment and prod for the production environment. Users can customize this |
For more fields, refer to DataKit Tracing Data Structure.