Skip to content

fix: add telemetry headers for appbase users only#83

Merged
bietkul merged 5 commits intodevelopfrom
fix/enable-telemetry-for-appbase-users-only
Oct 14, 2021
Merged

fix: add telemetry headers for appbase users only#83
bietkul merged 5 commits intodevelopfrom
fix/enable-telemetry-for-appbase-users-only

Conversation

@mohdashraf010897
Copy link
Copy Markdown
Member

PR Type Bug

Description:

Test Cases:
image

Copy link
Copy Markdown
Contributor

@bietkul bietkul left a comment

Choose a reason for hiding this comment

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

Share a demo, how did you test the telemetry header?

};
const headers = {};

Object.assign(headers, {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@mohdashraf010897 Use a utility method to get telemetry headers.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

okay!

@@ -9,20 +9,16 @@ import { btoa, removeUndefined } from '../../utils/index';
* @param {String} args.path
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why do we have changes in this file?

Copy link
Copy Markdown
Member Author

@mohdashraf010897 mohdashraf010897 Oct 14, 2021

Choose a reason for hiding this comment

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

I needed to pass headers(x-search-client) that were specific to certain methods calling the fetch function, so added a key called headers

@bietkul bietkul merged commit 2b2fbc3 into develop Oct 14, 2021
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