Event input is captured as individual fields in service of avoiding an allocation to wrap the event.
Event input is captured as individual fields in service of avoiding an allocation to wrap the event.
Note that callers should check recording before calling into this method:
if (sink.recording) {
sink.event(...)
}
Returns all currently available events.
Returns all currently available events.
Note: the events are not returned in any particular order.
Whether or not this sink should be recording events.
Whether or not this sink should be recording events.
This is external to the event() and managed by caller because there is some expense in capturing the data sent to that call.
The expectation is for callers to do:
if (sink.recording) {
sink.event(...)
}
Update the current state of recording.
Update the current state of recording.
For Java compatibility see setRecording.
Update the current state of recording.
Update the current state of recording.
Java compatibility for recording_=.
Where runtime events such as logging, stats and tracing can be sent to allow for analysis.
Note: while the API is public it should be considered as experimental and subject to changes.
Design notes
event
is expected to be called many orders of magnitude more frequently thanevents
.