-
Notifications
You must be signed in to change notification settings - Fork 4
XRayLogEmitter
pokryfka edited this page Aug 10, 2020
·
5 revisions
"Emits" segments by logging them using provided logger instance.
public struct XRayLogEmitter: XRayEmitter
Creates an instance of XRayLogEmitter
.
public init(logger: Logger)
- logger: - logger: logger instance.
Creates an instance of XRayLogEmitter
.
public init(label: String? = nil, onlyErrors: Bool = false)
- label: - label: logger label used to create a logger instance.
- onlyErrors: - onlyErrors: if
true
, only errors are logged.
public func send(_ segment: XRayRecorder.Segment)
public func flush(_ callback: @escaping (Error?) -> Void)
public func shutdown(_ callback: @escaping (Error?) -> Void)
Generated at 2020-08-17T04:20:53+0000 using swift-doc 1.0.0-beta.4.
Types
- AnyCodable
- AnyDecodable
- AnyEncodable
- XRayLogEmitter
- XRayNoOpEmitter
- XRayNoOpRecorder
- XRayRecorder
- XRayRecorder.Config
- XRayRecorder.Config.ContextMissingStrategy
- XRayRecorder.Segment
- XRayRecorder.Segment.ID
- XRayRecorder.Timestamp
- XRayRecorder.TraceContext
- XRayRecorder.TraceID
- XRayUDPEmitter
- XRayUDPEmitter.Config
- XRayUDPEmitter.EventLoopGroupProvider
- XRayUDPEmitter.SegmentEncoding