nemoguardrails.http.instrumented
Module Contents
Classes
Functions
Data
API
Decorate an HTTP client with privacy-safe tracing and metrics.
The decorator preserves request behavior and client ownership. Wrapping an
existing InstrumentedHTTPClient is idempotent, and tracing and metrics
can be enabled independently.
Return the underlying client for direct access or re-instrumentation.
Return an existing instrumented client without wrapping it again.
Apply the current instrumentation settings to another client.
Close the wrapped client without taking ownership from its caller.
Repeated calls are safe. A failed or cancelled close remains retryable.
Forward one request while recording privacy-safe HTTP telemetry.
Telemetry includes the method, sanitized URL, payload sizes, response status, and retry count. Header, query, body, and credential values are never recorded.
Return client decorated with the requested HTTP telemetry.
The original client is returned when telemetry is disabled or the client is already instrumented.