Implement usage of namespace AI data collection setting

What does this MR do and why?

This MR introduces the implementation of an admin setting to enable AI Usage data collection, previously this behavior was controlled via a feature flag. The setting supersedes the FF while still allowing individual users to enable the FF. The setting is by default off similar to the feature flag.

References

Screenshots or screen recordings

Before After

How to set up and validate locally

  1. Run GDK in SaaS mode, go to a Duo enabled group, settings: http://gdk.test:3000/groups/gitlab-duo/-/settings/gitlab_duo/configuration
  2. Enable Collect usage data

image

  1. Start a workflow or chat, observe in LangChain that the traces come in

image

  1. Disable the Collect usage data start a new chat or flow and observe no traces coming into LangChain

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #587976 (closed)

Edited by Fred de Gier

Merge request reports

Loading