Aller directement au contenu principal

openhands.server.monitoring

MonitoringListener Objects

class MonitoringListener()

Allow tracking of application activity for monitoring purposes.

Implementations should be non-disruptive, do not raise or block to perform I/O.

on_session_event

def on_session_event(event: Event) -> None

Track metrics about events being added to a Session's EventStream.

on_agent_session_start

def on_agent_session_start(success: bool, duration: float) -> None

Track an agent session start. Success is true if startup completed without error. Duration is start time in seconds observed by AgentSession.

on_create_conversation

def on_create_conversation() -> None

Track the beginning of conversation creation. Does not currently capture whether it succeed.