X-Majordomo-* headers. The gateway stores these as metadata on each request. The dashboard auto-discovers keys and lets you:
- Set a human‑friendly display name
- Mark keys Active to index them for fast filtering and breakdowns
@> queries and high‑cardinality analytics.
Where to manage keys
- In the dashboard: Usage → Metadata Keys
Making a key discoverable
Send any request with the header set, for example:X-Majordomo- prefix is stripped in storage, so these become Feature, Team, Environment, and User-Id.
Activating a key (indexing)
- Open Usage → Metadata Keys
- Locate the key and click “Active” to toggle it on
- Optionally click the Display Name to set a friendlier label (e.g.,
User ID)
indexed_metadata become fast and scalable for that key.
Using active keys in filters
- Usage pages and Replay/Evals creation dialogs include metadata filters. Active keys appear in the pickers; values are matched using the indexed column.
Best‑practice dimensions
Feature— product feature or surfaceTeam— owning or chargeback teamEnvironment— prod/staging/devUser-Id— opaque end‑user identifier (do not place PII here)User-Tier— free/pro/enterpriseExperiment— A/B test or model switch campaign
Query examples
For indexed keys (fast):Notes
- Reserved headers are not treated as metadata:
X-Majordomo-Key,X-Majordomo-Provider,X-Majordomo-Provider-Alias. - Avoid PII in metadata values. Prefer opaque IDs.