HiTraceId
typedef struct HiTraceId {...} HiTraceId
Overview
Defines a HiTraceId instance.
Since: 12
Related module: HiTrace
Header file: trace.h
Summary
Member Variables
A little-endian HiTraceId consists of the following fields in sequence:
| Field | Number of Bits | Description |
|---|---|---|
| uint64_t valid | 1 | Whether a HiTraceId instance is valid. |
| uint64_t ver | 3 | Version number of HiTraceId. |
| uint64_t chainId | 60 | Trace chain ID of HiTraceId. |
| uint64_t flags | 12 | Trace flag of HiTraceId. |
| uint64_t spanId | 26 | Span ID of HiTraceId. |
| uint64_t parentSpanId | 26 | Parent span ID of HiTraceId. |
A big-endian HiTraceId consists of the following fields in sequence:
| Field | Number of Bits | Description |
|---|---|---|
| uint64_t chainId | 60 | Trace chain ID of HiTraceId. |
| uint64_t ver | 3 | Version number of HiTraceId. |
| uint64_t valid | 1 | Whether a HiTraceId instance is valid. |
| uint64_t parentSpanId | 26 | Parent span ID of HiTraceId. |
| uint64_t spanId | 26 | Span ID of HiTraceId. |
| uint64_t flags | 12 | Trace flag of HiTraceId. |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 js-apis-hiviewdfx-FaultLogExtensionAbility
openharmony 鸿蒙 errorcode-hisysevent-sys
openharmony 鸿蒙 capi-hidebug-hidebug-threadcpuusage
openharmony 鸿蒙 js-apis-loglibrary-sys
openharmony 鸿蒙 capi-hiappevent-h
openharmony 鸿蒙 capi-hidebug-hidebug-jsstackframe