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 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

      Map<String,String> 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

      Optional<String> getSessionOwner()
      The owner of the session, which triggered this trace event. See comment above for #getSessionId
    • getLiveExperiences

      Set<Experiment.Experience> getLiveExperiences()
      Live experiences in effect for the triggering session, at the time this event was triggered.
      Returns:
      A set of objects of type Experiment.Experience.*
      Since:
      0.7