Skip to content

feat(telemetry): log 'X-Gitlab-Duo-Seat-Count' header value

Aleksei Lipniagov requested to merge 606-log-duo-seat-count-header-value into main

What does this merge request do and why?

We discovered that we missed logging X-Gitlab-Duo-Seat-Count. This MR fixes that.

Resolves https://gitlab.com/gitlab-org/modelops/applied-ml/code-suggestions/ai-assist/-/issues/606

How to set up and validate locally

The simplest way to verify is to open http://localhost:3000/admin/code_suggestions (assuming you have working GDK <-> local AI GW setup). This page will send a test Code Completion request:

Screenshot_2024-08-19_at_15.37.46

You can see gitlab_duo_seat_count in request logs:

Screenshot_2024-08-19_at_15.35.48

The value will match the header.

Merge request checklist

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

Closes #606

Edited by Aleksei Lipniagov

Merge request reports

Loading