Instrumentation Rules
Headers Collection
The “Headers Collection” rule can be used to add span attributes by collecting HTTP Headers data.
This Instrumentation Rule is currently only available with the Odigos Enterprise plan.
Contact us for more information.
Considerations
Before enabling headers collection, please note the following:
- The support for headers collection varies between instrumentation libraries and languages.
- HTTP headers might contain PII data (like cookies or API keys), thus it is recommended to review each requested header before configuring it to avoid sensitive information.
Configuration Options
Any unspecified headers will not be recorded.
Basic Example
The following example demonstrates how to enable headers collection for all supported workloads and instrumentation libraries in the cluster.
1
Create a YAML file with the following content:
headers-collection.yaml
2
Apply the action to the cluster: