You need to enable JavaScript to run this app.
Torch Log Service

Torch Log Service

Copy page
Download PDF
Tracing service
Trace data format
Copy page
Download PDF
Trace data format
Torch Log Service(TLS) is compatible with the OpenTelemetry-defined data format. This topic describes the defined fields that are used when collecting trace data.​
After collecting and writing trace data to TLS, the trace data is stored in the specified log topic as structured key-value pairs, with field indexing enabled. The trace data fields defined by TLS are described as follows.​
Tip​
The trace data format in TLS is fully compatible with the standard data format of the OpenTelemetry protocol. Trace data written via the OpenTelemetry protocol can be automatically mapped to OpenTelemetry's trace data format.​
​
TLS field​
Data type​
Example value​
Description​
Name​
String​
Poll​
Span name​
TraceID​
String​
e29a0a64fd256081ad57e983d260xxxx​
Trace ID of the span, in hexadecimal format.​
SpanID​
String​
198b93e4fc50xxxx​
Span ID, in hexadecimal format​
TraceState​
String​
lasterror=f39cd56cc44274fd5abd07ef1164246d10cexxxx​
(optional) Custom key-value pairs.​
ParentSpanID​
String​
198b93e4fc50xxxx​
Parent SpanID of the current Span. The ParentSpanID of the first Span is empty​
Kind​
String​
SERVER​
Span type, such as SERVER or CLIENT.​
Start​
Integer​
1683032165241​
Span start time. Unix timestamp type, measured in milliseconds.​
End​
Integer​
1683032220248​
Span end time. Unix timestamp type, measured in milliseconds.​
Duration​
Integer​
55007​
Span duration—the difference between start time and end time. It is measured in milliseconds.​
Attributes​
JSON​
{"component": "net/http", "http.method": "GET", "http.status_code": 200, "http.url": "0.0.0.0:8083", "net/http.reused": true, “net/http.was_idle”: true}​
Attribute information of span. For details, see Attribute Naming​
Events​
JSON​
[ { "Attributes": { "event": "GetConn" }, "Name": "", "Time": 1684420552720997000 }, { "Attributes": { "event": "ClosedBody" }, "Name": "", "Time": 1684420552786987000 } ]​
Span-related event information in JSON string format​
Links​
JSON​
[{"TraceID" : "e29a0a64fd256081ad57e983d260****", "SpanId" : "198b93e4fc50****", "TraceState" : "Client", "Attributes" : {} }]​
Other associated spans. It is in JSON string format.​
StatusCode​
String​
OK​
Status code, including OK, ERROR, or UNSET.​
StatusDescription​
String​
Success​
Description of the status.​
Resource​
JSON​
{"environment":"demo","service.name":"fib","service.version":"v0.1.0","telemetry.sdk.language":"go","telemetry.sdk.name":"opentelemetry","telemetry.sdk.version":"1.11.0"}​
Resource field. For details, see Resource Semantic Conventions.​
ServiceName​
String​
TLS_OTEL_SERVICE​
Service name where the span originated. That is, the service.name from resource.​
Host​
String​
localhost​
The hostname where the span comes from, i.e., the host.name from resource.​
OTLPName​
String​
opentelemetry​
Name of the trace SDK.​
OTLPVersion​
String​
1.11.0​
Trace SDK version number.​
​
​
Last updated: 2026.07.27 14:20:12