This feature is available as an add-on for the Honeycomb Enterprise plan.
Please contact your Honeycomb account team for details.
Description
The Add Fields processor can be used to add attributes, resources, and log record body keys from telemetry in the pipeline.Use
The Add Fields processor is utilized for enriching telemetry data by appending or modifying attributes, resources, and log record body keys in metrics, logs, and traces based on specified conditions.Supported Types
| Metrics | Logs | Traces |
|---|---|---|
| β | β | β |
Configuration
| Field | Description |
|---|---|
| Telemetry Types | The types of telemetry to apply the processor to. |
| Condition | An OTTL condition that must evaluate to true to apply this processor. By default, the processor applies to all telemetry. |
| Field Type | Indicates the context in which the processor should operate: Attributes, Body, or Resource. Note: Body fields are applicable only for logs. |
| Action | Insert: Add field if it does not exist. Update: Update existing value. Upsert: Insert or update. |
| Key | Key to add or modify to the telemetry. |
| Value | Value associated with the defined key to add or modify to the telemetry. |
Example Configuration
Append Resource to Metrics for Categorization by Source
In this configuration, additional resource data is appended to the metrics to categorize and identify them based on their source. This is particularly useful for differentiating and filtering metrics that are generated from various environments or locations.- environment: dev
- location: us-east1-b