Separate Code Suggestions telemetry details from connection details
Problem
Telemetry attributes like gitlab_instance_id
and gitlab_hostname
are missing if instance does not have direct access to AI GW.
Context
Currently, telemetry attributes like gitlab_instance_id
and gitlab_host_name
are only fetched when Direct Connection to the AI GW is enabled. This is not ideal because we want to be able to see usage numbers when connections go through GitLab monolith too.
fix: Keep connection details global context (gitlab-org/editor-extensions/gitlab-lsp!1950 - merged) tried to fix that, but we can't really have a final solution using direct_access
endpoint so we need a new endpoint to expose only the connection details for any user.
Proposal
Create a new endpoint to expose the following attributes:
gitlab_instance_id
gitlab_realm
gitlab_global_user_id
gitlab_host_name
gitlab_feature_enablement_type
gitlab_saas_duo_pro_namespace_ids
All these attributes are already exposed in the direct_access endpoint and we should reuse whatever it is available there.