Skip to content

feat: add User-Agent header with SDK version#181

Merged
gagantrivedi merged 5 commits intomainfrom
feat/user-agent-header
Oct 14, 2025
Merged

feat: add User-Agent header with SDK version#181
gagantrivedi merged 5 commits intomainfrom
feat/user-agent-header

Conversation

@gagantrivedi
Copy link
Copy Markdown
Member

Implements #175

  • Add getUserAgent() function that uses runtime/debug.ReadBuildInfo() to detect SDK version
  • User-Agent format: flagsmith-go-sdk/ or flagsmith-go-sdk/unknown in development
  • Added unit and integration tests
  • Exported getUserAgent() via export_test.go for testing purposes

Implements #175

- Add getUserAgent() function that uses runtime/debug.ReadBuildInfo() to detect SDK version
- User-Agent format: flagsmith-go-sdk/<version> or flagsmith-go-sdk/unknown in development
- Added comprehensive unit and integration tests
- Exported getUserAgent() via export_test.go for testing purposes
@gagantrivedi gagantrivedi requested a review from a team as a code owner October 14, 2025 07:10
@gagantrivedi gagantrivedi requested review from Zaimwa9 and removed request for a team October 14, 2025 07:10
Comment thread version_test.go Outdated
Comment thread version.go Outdated
Zaimwa9
Zaimwa9 previously approved these changes Oct 14, 2025
Copy link
Copy Markdown
Contributor

@Zaimwa9 Zaimwa9 left a comment

Choose a reason for hiding this comment

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

solid

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