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

feat(1 3223): add client identification headers #235

Merged
merged 10 commits into from
Jan 8, 2025

Conversation

thomasheartman
Copy link
Contributor

This PR adds client identification headers to the feature and metrics calls that the client makes to Unleash. The headers are:

  • x-unleash-appname: the name of the application that is using the client
  • x-unleash-connection-id: a unique identifier for the current instance of the client
  • x-unleash-sdk: sdk information in the format unleash-js@<version>

Discussion points:

What should we call the client here? Is unleash-js correct? Should it be unleash-browser? unleash-proxy-client?

Second: should the client be possible to override? This package is also what powers our React, Svelte, and Vue SDKs. Should they be able to override it (so you'd get unleash-react@<version>)? I think that would be useful

src/index.test.ts Outdated Show resolved Hide resolved
src/metrics.ts Outdated Show resolved Hide resolved
src/index.test.ts Outdated Show resolved Hide resolved
@thomasheartman thomasheartman merged commit 3615f15 into main Jan 8, 2025
3 checks passed
@thomasheartman thomasheartman deleted the feat(1-3223)/add-client-identification-headers branch January 8, 2025 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants