Skip to content

otel,loki,bigquery: add headers() option to dest #192

Merged
MrAnno merged 2 commits intoaxoflow:mainfrom
alltilla:otel-dest-headers
Jul 8, 2024
Merged

otel,loki,bigquery: add headers() option to dest #192
MrAnno merged 2 commits intoaxoflow:mainfrom
alltilla:otel-dest-headers

Conversation

@alltilla
Copy link
Member

@alltilla alltilla commented Jul 5, 2024

Example config:

opentelemetry(
  ...
  headers(
    "organization" => "Axoflow"
    "stream-name" => "axo-stream"
  )
);

@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2024

This Pull Request introduces config grammar changes

axoflow/f18641e31f1a2884b4a36c731e60cfc0d5bace62 -> alltilla/otel-dest-headers

Details
--- a/destination
+++ b/destination

 axosyslog-otlp(
+    headers(
+        <empty>
+        <string> => <string>
+    )
 )

 bigquery(
+    headers(
+        <empty>
+        <string> => <string>
+    )
 )

 loki(
+    headers(
+        <empty>
+        <string> => <string>
+    )
 )

 opentelemetry(
+    headers(
+        <empty>
+        <string> => <string>
+    )
 )

 syslog-ng-otlp(
+    headers(
+        <empty>
+        <string> => <string>
+    )
 )

alltilla added 2 commits July 5, 2024 10:03
Example config:
```
opentelemetry(
  ...
  headers(
    "organization" => "Axoflow"
    "stream-name" => "axo-stream"
  )
);
```

Signed-off-by: Attila Szakacs <[email protected]>
Signed-off-by: Attila Szakacs <[email protected]>
@alltilla alltilla force-pushed the otel-dest-headers branch from dea2e59 to c1fd345 Compare July 5, 2024 08:17
@bazsi
Copy link
Member

bazsi commented Jul 7, 2024

I tested the headers() option for Otel as I had a good enough test environment locally and it seems to work fine. It did lowercase the header as expected and the tcpdump capture did contain the header added.

@MrAnno MrAnno merged commit ca64986 into axoflow:main Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants