Skip to main content

NullGatewayTraceHook

Defined in the protocols module.
AI Agent Zero-cost no-op :class:GatewayTraceHook used when tracing is disabled. Every stage call returns a lightweight, argument-ignoring null context manager (one small allocation per call), so firing the seam adds negligible overhead on the hot path. This is the default a gateway uses until an exporter plugin (e.g. the OTel/OTLP plugin in praisonai-plugins) is supplied.

Methods

stage()

Return a no-op context manager, ignoring all arguments.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 4866

Hooks Concept

Hook Events

Callbacks

Gateway Feature