The TraceContextDataType Structure is defined in Table 9. This structure is a subtype of the SpanContextDataType and is used in the LogRecord. It extends the SpanContextDataType Structure adding two additional fields. The ParentSpanId (together with the SpanId) allows for the creation of a tree of related Log Records. The ParentIdentifier can be used to provide context information related to the parent.
Table 9 – TraceContextDataType
Name |
Type |
Description |
TraceContextDataType |
Structure |
Subtype of SpanContextDataType defined in 5.5.2 |
ParentSpanId |
0:UInt64 |
The identifier of the parent span. The value is 0 for a root span. |
ParentIdentifier |
0:String |
If the parent span is from another OPC UA Application, the ParentIdentifier contains the ApplicationUri of the other OPC UA Application. If the parent span is an internal span, the ParentIdentifier shall be null or empty. If the ParentSpanId is 0, the ParentIdentifier shall be null or empty. |
The TraceContextDataType representation in the AddressSpace is formally defined in Table 10.
Table 10 – TraceContextDataType definition
Attribute |
Value |
|||||
BrowseName |
TraceContextDataType |
|||||
IsAbstract |
False |
|||||
References |
NodeClass |
BrowseName |
DataType |
TypeDefinition |
Other |
|
Subtype of the SpanContextDataType defined in 5.5.2 |
||||||
ConformanceUnits |
||||||
LogObject TraceContext |