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

Send additional data to metadata end point #1678

Merged
merged 4 commits into from
Aug 11, 2021
Merged

Send additional data to metadata end point #1678

merged 4 commits into from
Aug 11, 2021

Conversation

RojaEnnam
Copy link
Contributor

@RojaEnnam RojaEnnam commented Aug 5, 2021

Send additional data to metadata end point

@RojaEnnam RojaEnnam marked this pull request as draft August 5, 2021 20:42
@RojaEnnam RojaEnnam marked this pull request as ready for review August 5, 2021 21:56
@RojaEnnam RojaEnnam changed the title Send AppId to metadata end point Send additional data to metadata end point Aug 5, 2021
{
// 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);
Copy link
Member

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)
Copy link
Member

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'?

Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@RojaEnnam RojaEnnam merged commit 509ea41 into dev Aug 11, 2021
@RojaEnnam RojaEnnam deleted the roennam/SendAppId branch August 11, 2021 20:53
@brockallen
Copy link

What's the requirement or issue that motivated this "feature"? It's not linked here, so it's curious what this is for.

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.

4 participants