Skip to content

XRayRecorder_TraceID

pokryfka edited this page Aug 3, 2020 · 3 revisions

XRayRecorder.TraceID

X-Ray Trace ID used to group XRayRecorder.Segments.

public struct TraceID:​ RawRepresentable, Equatable

Trace ID Format

A trace_id consists of three numbers separated by hyphens. For example, 1-58406520-a006649127e371903a2de979. This includes:​

  • The version number, that is, 1.

  • The time of the original request, in Unix epoch time, in 8 hexadecimal digits. For example, 10:​00AM December 1st, 2016 PST in epoch time is 1480615200 seconds, or 58406520 in hexadecimal digits.

  • A 96-bit identifier for the trace, globally unique, in 24 hexadecimal digits.

References

Inheritance

Equatable, RawRepresentable

Initializers

init?(rawValue:​)

public init?(rawValue:​ String)

init()

Creates new TraceID.

public init()

Properties

rawValue

var rawValue:​ String
Clone this wiki locally