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

chore: set knock user agent #34

Merged
merged 2 commits into from
May 22, 2024

Conversation

vlymar
Copy link
Contributor

@vlymar vlymar commented May 21, 2024

This PR overrides the default go http client's user agent with a knock specific one.

We'll have to update sdk_version.go during our release process, but we already do that for other SDKs (e.g. elixir).

Here's an example log for a request I made with this branch:
CleanShot 2024-05-22 at 10 36 59@2x

This is most likely the scheme we'll standardize around for all SDKs in the future.

Copy link

linear bot commented May 21, 2024

@vlymar vlymar marked this pull request as ready for review May 21, 2024 20:46
@vlymar vlymar requested a review from cjbell May 21, 2024 20:47
@vlymar
Copy link
Contributor Author

vlymar commented May 21, 2024

Closing this PR as we have plans in-flight for generating SDK user agents a different way in the future

@vlymar vlymar closed this May 21, 2024
@vlymar vlymar reopened this May 22, 2024
@vlymar
Copy link
Contributor Author

vlymar commented May 22, 2024

Re-opening as there is still value in this telemetry today.

@vlymar vlymar merged commit 7b40cb7 into main May 22, 2024
4 checks passed
@vlymar vlymar deleted the victor-kno-6011-override-user-agent-for-knock-go-sdk branch May 22, 2024 23:51
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