-
Notifications
You must be signed in to change notification settings - Fork 4
XRayUDPEmitter
pokryfka edited this page Aug 10, 2020
·
4 revisions
Sends XRayRecorder.Segment
s to the X-Ray daemon, which will buffer them and upload to the X-Ray API in batches.
The X-Ray SDK sends segment documents to the daemon to avoid making calls to AWS directly.
public class XRayUDPEmitter: XRayNIOEmitter
The IP address and port of the X-Ray daemon is configured using AWS_XRAY_DAEMON_ADDRESS
environment variable, 127.0.0.1:2000
by default.
Creates an instance of XRayUDPEmitter
.
public convenience init(encoding: SegmentEncoding, eventLoopGroupProvider: EventLoopGroupProvider = .createNew, config: Config = Config()) throws
- encoding: - encoding: Contains encoder used to encode
XRayRecorder.Segment
to JSON string. - eventLoopGroupProvider: - eventLoopGroupProvider: Specifies how
EventLoopGroup
will be created and establishes lifecycle ownership. - config: - config: configuration, overrides enviromental variables.
may throw if the UDP Daemon endpoint cannot be parsed.
public func send(_ segment: XRayRecorder.Segment)
public func flush(_ callback: @escaping (Error?) -> Void)
public func flush(on eventLoop: EventLoop? = nil) -> EventLoopFuture<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