Client
A Client is the part of the SDK that is responsible for event creation. To give an example, the Client should convert an exception to a Sentry event.
The Client should be stateless, it gets the Scope injected and delegates the work of sending the event to the Transport.
Functions
CaptureEvent
Captures the event by merging it with other data with defaults from the client.
In addition, if a scope is passed to this system, the data from the scope passes it to the internal transport.
Close
Client:
Close
(
Timeout:
number?
) →
(
)
Flushes out the queue for up to timeout seconds. If the client can guarantee delivery of events only up to the current point in time this is preferred. This might block for timeout seconds.
The client is disabled after this method is called.
Flush
Client:
Flush
(
Timeout:
number?
) →
(
)
Same as close difference is that the client is NOT disposed after invocation.