Skip to content

Commit

Permalink
refactor: record the correct shuttle.user.id for the new platform (#1780
Browse files Browse the repository at this point in the history
)
  • Loading branch information
chesedo authored May 21, 2024
1 parent 6ef0312 commit ac6cf7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/src/claims.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@ impl<S> FromRequestParts<S> for Claim {
// Record current account name for tracing purposes
Span::current().record("account.user_id", &claim.sub);

// And for the new system
Span::current().record("shuttle.user.id", &claim.sub);

trace!(?claim, "got user");

Ok(claim.clone())
Expand Down

0 comments on commit ac6cf7b

Please sign in to comment.