-
Notifications
You must be signed in to change notification settings - Fork 422
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
Send additional data to metadata end point #1678
Conversation
{ | ||
// remove this header if it already exists. | ||
// we don't want to add an additional value in case when a telemetry header already exists, but to overwrite it. | ||
request.Headers.Remove(parameter.Key); |
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.
Why would an existing telemetry header exist?
Can we shorten the comment to explain why we need to remove existing?
|
||
if (additionalHeaders != null) | ||
{ | ||
foreach (var parameter in additionalHeaders) |
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.
nit: would it make more sense to call this variable 'header' rather than 'parameter'?
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.
@RojaEnnam can you make this change and then we can approve.
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.
Done.
8d23443
to
20589d9
Compare
What's the requirement or issue that motivated this "feature"? It's not linked here, so it's curious what this is for. |
Send additional data to metadata end point