Skip to content

chore: log options when initializing Vertex client

Alejandro Rodríguez requested to merge vertex-logging into main

What does this merge request do and why?

Closes #462 (closed)

How to set up and validate locally

Just start the server (poetry run ai_gateway) and you should see a log message like the following:

{"api_endpoint": "us-central1-aiplatform.googleapis.com", "logger": "codesuggestions", "level": "info", "type": "mlops", "stage": "main", "timestamp": "2024-05-31T22:06:55.414044Z", "message": "Initializing Vertex AI client"}

Merge request checklist

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

Merge request reports