Skip to content

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

Open
George-iam wants to merge 1 commit intomainfrom
feat/x-axme-client-header-20260410
Open

feat: send X-Axme-Client header for AXME analytics#50
George-iam wants to merge 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-python/<version> header to all outgoing HTTP
requests, enabling AXME platform admin analytics to identify which SDK
generated the traffic. The control-plane stores this in api_usage_hourly
and exposes it per-org in /admin/analytics/users/<org_id>/activity.

- New __version__ constant in axme_sdk/__init__.py and re-exported from axme
- _default_headers() now includes X-Axme-Client built from __version__
- Test helper updated to mirror the same default headers
- New test_health_sends_x_axme_client_header verifies the header is set
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