collab: Attach GitHub login to LLM spans (#16316)

This PR updates the LLM service to include the GitHub login on its
spans.

We need to pass this information through on the LLM token, so it will
temporarily be `None` until this change is deployed and new tokens have
been issued.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-08-15 17:06:20 -04:00 committed by GitHub
parent df20bae80e
commit 9233418cb8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 0 deletions

View file

@ -4941,6 +4941,7 @@ async fn get_llm_api_token(
}
let token = LlmTokenClaims::create(
user.id,
user.github_login.clone(),
session.is_staff(),
session.current_plan(db).await?,
&session.app_state.config,