Skip to content

Comments

Add more logging for JWT debugging#446

Merged
michael-richey merged 6 commits intomainfrom
michael.richey/logging-jwt-errors
Feb 5, 2026
Merged

Add more logging for JWT debugging#446
michael-richey merged 6 commits intomainfrom
michael.richey/logging-jwt-errors

Conversation

@michael-richey
Copy link
Collaborator

What does this PR do?

Add more logging and provide a way to not send metrics if we're using a JWT (because they require api and app keys)

@michael-richey michael-richey marked this pull request as ready for review February 4, 2026 20:21
@michael-richey michael-richey requested a review from a team as a code owner February 4, 2026 20:21
Comment on lines 338 to 340
# Log first and last 10 chars for debugging without exposing the full token
if jwt and len(jwt) > 30:
log.info(f"JWT preview: {jwt[:10]}...{jwt[-10:]}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this an ok thing to do with JWT? Seems like a lot of chars to emit.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed, i'll trim it down more

heyronhay
heyronhay previously approved these changes Feb 5, 2026
@michael-richey michael-richey merged commit ae6f8ba into main Feb 5, 2026
11 checks passed
@michael-richey michael-richey deleted the michael.richey/logging-jwt-errors branch February 5, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants