Skip to content

feat: send X-Axme-Client header for AXME analytics#32

Merged
George-iam merged 1 commit intomainfrom
feat/x-axme-client-header-20260410
Apr 10, 2026
Merged

feat: send X-Axme-Client header for AXME analytics#32
George-iam merged 1 commit intomainfrom
feat/x-axme-client-header-20260410

Conversation

@George-iam
Copy link
Copy Markdown
Contributor

Summary

Adds X-Axme-Client: axme-sdk-{lang}/{version} header to all outgoing HTTP requests so the AXME platform admin dashboard can identify which SDK generated traffic. Per-org breakdown is exposed via /admin/analytics/users/{org_id}/activity usage_breakdown.client_types field on the control plane.

Without this header, all SDK requests show up as unknown in the admin user-detail page client breakdown panel.

Changes

  • New SDK version constant
  • Header added in the request builder
  • Unit test verifies the header is set on outgoing requests

Test plan

  • Unit tests pass
  • After merge + release, verify header appears in api_usage_hourly.client_type on staging

Adds X-Axme-Client: axme-sdk-java/<version> header to all outgoing HTTP
requests, enabling AXME platform admin analytics to identify which SDK
generated the traffic.

- New SDK_VERSION public constant on AxmeClient (kept in sync with releases)
- Header added in the main HttpRequest builder
- Tests verify the header is set on register-nick and check-nick paths
@George-iam George-iam merged commit aff49ee into main Apr 10, 2026
1 check passed
@George-iam George-iam deleted the feat/x-axme-client-header-20260410 branch April 10, 2026 14:55
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