Skip to content

Commit

Permalink
Add default landscape token in OTel Collector if none is given
Browse files Browse the repository at this point in the history
  • Loading branch information
Malte-Hansen committed Nov 25, 2024
1 parent 9d7597d commit 93be2c4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docker/compose/configurations/otel-collector-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ receivers:
grpc:
endpoint: :55678

processors:
attributes/add_default_landscape_token:
actions:
- key: landscape_token
value: "mytokenvalue"
action: insert
- key: token_secret
value: "mytokensecret"
action: insert

exporters:
kafka:
protocol_version: 2.0.0
Expand All @@ -24,5 +34,7 @@ service:
traces:
receivers:
- otlp
processors:
- attributes/add_default_landscape_token
exporters:
- kafka
- debug

0 comments on commit 93be2c4

Please sign in to comment.