Skip to content
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

Add orchestrationId to useragent for better correlation. #2568

Merged
merged 2 commits into from
Apr 26, 2023

Conversation

TingluoHuang
Copy link
Member

With OrchestrationId in the user-agent, we can get a better correlation in our telemetry to figure out the source of each HTTP request (runner+job).

@TingluoHuang TingluoHuang requested a review from a team as a code owner April 26, 2023 18:58
@@ -42,6 +43,13 @@ public async Task<TaskResult> RunAsync(AgentJobRequestMessage message, Cancellat
DateTime jobStartTimeUtc = DateTime.UtcNow;
IRunnerService server = null;

// add orchestration id to useragent for better correlation.
if (message.Variables.TryGetValue(Constants.Variables.System.OrchestrationId, out VariableValue orchestrationId) &&
Copy link
Member Author

Choose a reason for hiding this comment

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

I still need to do a server PR to add the variable to the job message.

cory-miller
cory-miller previously approved these changes Apr 26, 2023
@TingluoHuang TingluoHuang enabled auto-merge (squash) April 26, 2023 19:10
@TingluoHuang TingluoHuang merged commit 6353ac8 into main Apr 26, 2023
@TingluoHuang TingluoHuang deleted the users/tihuang/304 branch April 26, 2023 19:15
nikola-jokic pushed a commit to nikola-jokic/runner that referenced this pull request May 12, 2023
* Add orchestrationId to useragent for better correlation.

* .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants