Commit a058e7b
authored
feat(collector): Add preset to reduce the log record attributes (#256)
Fixes ES-688.
Got a few examples from testing it in our boutique deployment:
<details><summary>Example log attributes before reduction</summary>
```
resource.attributes.host.id:i-091add7f3f1561581
resource.attributes.k8s.container.name:frontend
resource.attributes.k8s.namespace.name:onlineboutique
resource.attributes.k8s.pod.name:astronomy-store-frontend-656f5574b9-bk8ws
resource.attributes.k8s.container.restart_count:0
resource.attributes.k8s.cluster.name:eco-system-onlineboutique
resource.attributes.cx.otel_integration.name:coralogix-integration-helm
resource.attributes.host.name:ip-10-0-2-13.eu-west-1.compute.internal
resource.attributes.k8s.node.name:ip-10-0-2-13.eu-west-1.compute.internal
resource.attributes.host.image.id:ami-0fd9ff4ca2bb79d0b
resource.attributes.k8s.deployment.name:astronomy-store-frontend
scope.attributes:{}
resourceSchemaUrl:https://opentelemetry.io/schemas/1.6.1
logRecord.timeUnixNano:1753176028049833500
logRecord.observedTimeUnixNano:1753176028195250200
logRecord.body:options: {}
logRecord.attributes.logtag:F
logRecord.attributes.log.iostream:stderr
logRecord.attributes.log.file.path:/var/log/pods/onlineboutique_astronomy-store-frontend-656f5574b9-bk8ws_c4404f3b-09af-41e0-93e4-1d1dcd4c196a/frontend/0.log
logRecord.attributes.time:2025-07-22T09:20:28.049833363Z
```
</details>
<details><summary>Example log attributes after reduction</summary>
```
resource.attributes.host.id:i-0a0009540045850ba
resource.attributes.k8s.container.name:loadgenerator
resource.attributes.k8s.namespace.name:onlineboutique
resource.attributes.k8s.pod.name:astronomy-store-loadgenerator-8644d98cbb-dh6fc
resource.attributes.k8s.container.restart_count:336
resource.attributes.k8s.cluster.name:eco-system-onlineboutique
resource.attributes.cx.otel_integration.name:coralogix-integration-helm
resource.attributes.host.name:ip-10-0-3-162.eu-west-1.compute.internal
resource.attributes.k8s.node.name:ip-10-0-3-162.eu-west-1.compute.internal
resource.attributes.host.image.id:ami-0fd9ff4ca2bb79d0b
resource.attributes.k8s.deployment.name:astronomy-store-loadgenerator
scope.attributes:{}
resourceSchemaUrl:https://opentelemetry.io/schemas/1.6.1
logRecord.timeUnixNano:1753177232556224000
logRecord.observedTimeUnixNano:1753177232698984200
logRecord.body:GET /api/products/2ZYFJ3GM2N 453 0(0.00%) | 9 6 37 9 | 0.00 0.00
logRecord.attributes:{}
```
</details>
Also changed the `error_mode` of the transformers in this and the `reduceResourceAttributes` preset to `silent`.1 parent ca911f5 commit a058e7b
137 files changed
Lines changed: 231 additions & 164 deletions
File tree
- charts/opentelemetry-collector
- examples
- coralogix-exporter-pipelines/rendered
- coralogix-exporter-pipeline/rendered
- daemonset-and-deployment/rendered
- daemonset-hostmetrics/rendered
- daemonset-lifecycle-hooks/rendered
- daemonset-only/rendered
- daemonset-presets/rendered
- daemonset-reduced-attributes
- rendered
- daemonset-supervisor/rendered
- daemonset-targetallocator/rendered
- daemonset-windows/rendered
- deployment-only/rendered
- deployment-otlp-traces/rendered
- deployment-use-existing-configMap/rendered
- gke-autopilot/rendered
- host-entity/rendered
- kubernetesAttributes/rendered
- loadbalancing/rendered
- metadata/rendered
- opentelemetrycollector-crd/rendered
- opentelemetrycollector-daemonset-crd/rendered
- opentelemetrycollector-deployment-crd/rendered
- opentelemetrycollector-ds-crd/rendered
- profiles/rendered
- resource-catalog/rendered
- routing/rendered
- spanmetrics-multiple-preset/rendered
- statefulset-only/rendered
- transactions/rendered
- using-GOMEMLIMIT/rendered
- templates
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
charts/opentelemetry-collector/examples/coralogix-exporter-pipelines/rendered/configmap-agent.yaml
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments