Skip to content

Added 'User-Agent' header in REST API calls for the telemetry#151

Merged
ashah-splunk merged 4 commits intodevelopfrom
DVPL-10513
Apr 29, 2022
Merged

Added 'User-Agent' header in REST API calls for the telemetry#151
ashah-splunk merged 4 commits intodevelopfrom
DVPL-10513

Conversation

@akaila-splunk
Copy link
Contributor

  • Added a "User-Agent" header in the client and server REST API calls
  • To test: use the JavaScript SDK to make a request to the REST API (execute client or server side test cases/examples), then search index=_internal "splunk-sdk-javascript/1.11.0" to make sure the event appears as expected

@akaila-splunk akaila-splunk requested a review from fantavlik April 19, 2022 09:04
Copy link
Contributor

@fantavlik fantavlik left a comment

Choose a reason for hiding this comment

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

This is a good start with the node.js client, I believe these clients also need to follow the same logic for the browser clients to work and we'd like to test to make sure the User-Agent isn't being overwritten by browser information for those scenarios: https://github.com/splunk/splunk-sdk-javascript/tree/master/lib/platform/client

@ashah-splunk ashah-splunk merged commit 9323b02 into develop Apr 29, 2022
@ashah-splunk ashah-splunk deleted the DVPL-10513 branch May 2, 2022 06:59
@akaila-splunk akaila-splunk mentioned this pull request Jun 17, 2022
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.

3 participants