-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Try add orchestrationid into user-agent using token claim. #3945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the orchestration ID tracking by extracting it from JWT token claims and adding it to user-agent headers for better correlation and logging. The implementation provides fallback mechanisms and prevents duplicate entries.
Key changes:
- Adds logic to extract orchestration ID from JWT claims with fallback to secondary claim type
- Implements duplicate prevention when adding orchestration ID to user-agent headers
- Centralizes orchestration ID extraction in HostContext for runner initialization
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/Runner.Worker/JobRunner.cs | Adds duplicate check before inserting orchestration ID into user-agent headers |
| src/Runner.Listener/JobDispatcher.cs | Implements orchestration ID extraction from JWT claims with fallback logic |
| src/Runner.Common/HostContext.cs | Adds JWT import and orchestration ID extraction logic during user-agent initialization |
FckYrShit56
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
open access
|
No description provided.