Package com.variant.server.spi
Interface FlushableTraceEvent
public interface FlushableTraceEvent
An enriched Variant trace event that is passed to a trace event flusher.
Instantiated by Variant server and passed to the implementation of the trace event flusher
in
TraceEventFlusher.flush(FlushableTraceEvent[], int)
.- Since:
- 0.7
-
Method Summary
Modifier and TypeMethodDescriptionA read-only map of event attributes.getId()
The reasonably unique id of this event that is safe to use as unique key by external storage.Live experiences in effect for the triggering session, at the time this event was triggered.getName()
The name of the event.The Variant session ID, which triggered this trace event.The owner of the session, which triggered this trace event.Event creation timestamp.
-
Method Details
-
getName
String getName()The name of the event.- Since:
- 0.7
-
getId
String getId()The reasonably unique id of this event that is safe to use as unique key by external storage.- Since:
- 0.10
-
getTimestamp
Instant getTimestamp()Event creation timestamp.- Since:
- 0.7
-
getAttributes
A read-only map of event attributes.- Since:
- 0.7
-
getSessionId
String getSessionId()The Variant session ID, which triggered this trace event. The entire session object is not available because of the potential latency between the time a trace event is triggered and the time when user code gets access to this object, the triggering session may have completely changed or even expired.- Returns:
- Session ID.
- Since:
- 0.7
-
getSessionOwner
The owner of the session, which triggered this trace event. See comment above for #getSessionId -
getLiveExperiences
Set<Variation.Experience> getLiveExperiences()Live experiences in effect for the triggering session, at the time this event was triggered.- Returns:
- A set of objects of type
Variation.Experience
. - Since:
- 0.7
-