Skip to content

feat: block request logging when expanded_ai_logging is not passed

What does this merge request do and why?

expanded_ai_logging feature flag support was added to AIGW so we can control when detailed information is logged, but only a few selected endpoints where actually using it. This creates a logger wrapper and replaces all endpoints to not log debug info when the feature flag is not passed or when the env var is not set.

How to set up and validate locally

  1. Completion logs with logging: image
  2. completion logs without logging: image

Merge request checklist

  • Tests added for new functionality. If not, please raise an issue to follow up.
  • Documentation added/updated, if needed.

Closes #681 (closed)

Edited by Eduardo Bonet

Merge request reports

Loading