collab: Add is_staff to spans (#16389)

This PR adds the `is_staff` field to our LLM spans so that we can
distinguish between staff and non-staff traffic.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-08-16 18:42:44 -04:00 committed by GitHub
parent 1b1070e0f7
commit 3d997e5fd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -154,7 +154,8 @@ async fn main() -> Result<()> {
matched_path,
user_id = tracing::field::Empty,
login = tracing::field::Empty,
authn.jti = tracing::field::Empty
authn.jti = tracing::field::Empty,
is_staff = tracing::field::Empty
)
})
.on_response(