mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
This commit is contained in:
@@ -3,8 +3,15 @@ from openhands.events.event import Event
|
||||
|
||||
|
||||
class MonitoringListener:
|
||||
"""
|
||||
Allow tracking of application activity for monitoring purposes.
|
||||
"""Abstract base class for monitoring application activity.
|
||||
|
||||
This is an extension point in OpenHands that allows applications to customize how
|
||||
application activity is monitored. Applications can substitute their own implementation by:
|
||||
1. Creating a class that inherits from MonitoringListener
|
||||
2. Implementing desired methods (all methods have default no-op implementations)
|
||||
3. Setting server_config.monitoring_listener_class to the fully qualified name of the class
|
||||
|
||||
The class is instantiated via get_impl() in openhands.server.shared.py.
|
||||
|
||||
Implementations should be non-disruptive, do not raise or block to perform I/O.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user