nemoguardrails.http.telemetry
Module Contents
Classes
Functions
Data
API
Dataclass
Carry response status from request execution to metric recording.
response_status_code
Create a privacy-safe client span for one HTTP call.
Yields None when no tracer is configured. Request exceptions are
recorded and re-raised unchanged.
Record one HTTP client request-duration observation.
The metric contains only low-cardinality endpoint attributes plus response status or exception type. Telemetry failures never affect the request.
Record an exception type and retry count without exposing its message.
Record privacy-safe HTTP request attributes on a span.
The URL is stripped of credentials, query parameters, and fragments. Raw headers and body content are never recorded.
Record response status, body size, and retry count on a span.