Skip to content

XRayNoOpRecorder

pokryfka edited this page Aug 15, 2020 · 2 revisions

XRayNoOpRecorder

No operation XRayRecorder used when no recording is required.

public class XRayNoOpRecorder:​ XRayRecorder

Inheritance

XRayRecorder

Initializers

init()

Creates an instance of XRayNoOpRecorder.

public init()

Methods

beginSegment(name:​context:​startTime:​metadata:​)

override public func beginSegment(name:​ String, context:​ TraceContext, startTime:​ XRayRecorder.Timestamp = .now(), metadata:​ XRayRecorder.Segment.Metadata? = nil) -> XRayRecorder.Segment

beginSegment(name:​baggage:​startTime:​metadata:​)

override public func beginSegment(name:​ String, baggage:​ BaggageContext, startTime:​ XRayRecorder.Timestamp = .now(), metadata:​ XRayRecorder.Segment.Metadata? = nil) -> XRayRecorder.Segment

wait(_:​)

override public func wait(_ callback:((Error?) -> Void)? = nil)

shutdown(_:​)

override public func shutdown(_ callback:((Error?) -> Void)? = nil)