mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-01 05:44:17 +00:00
collab: Add is_staff
to upstream rate limit spans (#16463)
This PR adds the `is_staff` field to the `upstream rate limit` spans. Since we use different API keys for staff vs non-staff, it will be useful to break down the rate limits accordingly. Release Notes: - N/A
This commit is contained in:
parent
56f1ab9459
commit
de41c151c8
1 changed files with 1 additions and 0 deletions
|
@ -249,6 +249,7 @@ async fn perform_completion(
|
|||
if let Some(rate_limit_info) = rate_limit_info {
|
||||
tracing::info!(
|
||||
target: "upstream rate limit",
|
||||
is_staff = claims.is_staff,
|
||||
provider = params.provider.to_string(),
|
||||
model = model,
|
||||
tokens_remaining = rate_limit_info.tokens_remaining,
|
||||
|
|
Loading…
Reference in a new issue