Skip to content

feat: add HostData structure and enhance client configuration#44

Merged
gibiw merged 1 commit intomasterfrom
feat/headers
Dec 12, 2025
Merged

feat: add HostData structure and enhance client configuration#44
gibiw merged 1 commit intomasterfrom
feat/headers

Conversation

@gibiw
Copy link
Contributor

@gibiw gibiw commented Dec 12, 2025

  • Introduced a new HostData structure to collect and store information about the host system and package versions.
  • Updated ClientConfig to include a HostData field for setting X-Client and X-Platform headers.
  • Modified NewUnifiedClient and NewUnifiedClientWithHostData functions to support HostData integration.
  • Enhanced V2Client to set appropriate headers using HostData.
  • Updated CoreReporter to create and log HostData during initialization, improving debugging and reporting capabilities.

These changes provide better context about the environment in which the SDK is running, enhancing the API's ability to communicate relevant information to the server.

- Introduced a new `HostData` structure to collect and store information about the host system and package versions.
- Updated `ClientConfig` to include a `HostData` field for setting X-Client and X-Platform headers.
- Modified `NewUnifiedClient` and `NewUnifiedClientWithHostData` functions to support HostData integration.
- Enhanced `V2Client` to set appropriate headers using HostData.
- Updated `CoreReporter` to create and log HostData during initialization, improving debugging and reporting capabilities.

These changes provide better context about the environment in which the SDK is running, enhancing the API's ability to communicate relevant information to the server.
@gibiw gibiw merged commit a805009 into master Dec 12, 2025
30 checks passed
@gibiw gibiw deleted the feat/headers branch December 12, 2025 11:26
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.

1 participant