Creates a new XRay instance.
Configuration options including storage adapter
Clears all stored sessions.
Deletes a session by its ID.
The session ID to delete
Exports all sessions as a JSON string.
JSON string representation of all sessions
Retrieves all stored sessions, sorted by most recent first.
Array of all sessions
Retrieves a session by its unique ID.
The session ID to look up
The session if found, null otherwise
Imports sessions from a JSON string.
JSON string containing session data
Creates a new session builder for tracking a pipeline execution.
Human-readable name for the session (e.g., 'competitor-selection')
A SessionBuilder instance for fluent configuration
Main X-Ray class - entry point for the library.
Example