Control which requests are logged using headers or environment variables.
X-TFY-METADATA
header:
REQUEST_LOGGING_MODE
environment variable in the AI Gateway:
Mode | Description |
---|---|
HEADER_CONTROLLED | Logging depends on the tfy_log_request value in the X-TFY-METADATA header. If the header is absent or set to true , logging will occur. If set to false , no logging will happen. |
ALWAYS | All requests are logged regardless of the tfy_log_request value. |
NEVER | No requests are logged regardless of the tfy_log_request value. |
AI Gateway
> Monitor
> Requests
Request logs in the Monitor section