Skip to content

Commit

Permalink
Promote 'log' to top of record in k8s examples (open-telemetry#2873)
Browse files Browse the repository at this point in the history
  • Loading branch information
djaglowski authored and pmatyjasek-sumo committed Apr 28, 2021
1 parent ea925a8 commit 9455d0a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 28 deletions.
10 changes: 3 additions & 7 deletions examples/kubernetes/otel-collector-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,9 @@ receivers:
- type: restructure
id: clean-up-log-record
ops:
- remove: logtag
- remove: stream
- remove: container_name
- remove: namespace
- remove: pod_name
- remove: run_id
- remove: uid
- move:
from: log
to: $
exporters:
logging:
loglevel: debug
Expand Down
10 changes: 3 additions & 7 deletions examples/kubernetes/otel-collector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,9 @@ data:
- type: restructure
id: clean-up-log-record
ops:
- remove: logtag
- remove: stream
- remove: container_name
- remove: namespace
- remove: pod_name
- remove: run_id
- remove: uid
- move:
from: log
to: $
exporters:
logging:
loglevel: debug
Expand Down
20 changes: 6 additions & 14 deletions testbed/datasenders/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,9 @@ func NewKubernetesContainerWriter() *FileLogK8sWriter {
- type: restructure
id: clean-up-log-record
ops:
- remove: logtag
- remove: stream
- remove: container_name
- remove: namespace
- remove: pod_name
- remove: run_id
- remove: uid
- move:
from: log
to: $
`)
}

Expand Down Expand Up @@ -261,13 +257,9 @@ func NewKubernetesCRIContainerdWriter() *FileLogK8sWriter {
- type: restructure
id: clean-up-log-record
ops:
- remove: logtag
- remove: stream
- remove: container_name
- remove: namespace
- remove: pod_name
- remove: run_id
- remove: uid
- move:
from: log
to: $
`)
}

Expand Down

0 comments on commit 9455d0a

Please sign in to comment.