-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
telemetry configuration causes crash at startup #12439
Comments
It took me some time to reproduce the issue, the following config causes can reproduce the problem: service:
telemetry:
logs:
processors:
- batch:
exporter:
otlp:
endpoint: collector:4318
headers:
key1: value1
key2: value2
key3: value3
protocol: http/protobuf |
A workaround if to use the following config: service:
telemetry:
logs:
processors:
- batch:
exporter:
otlp:
endpoint: collector:4318
headers:
- name: key1
value: value1
- name: key2
value: value2
- name: key3
value: value3
protocol: http/protobuf |
github-merge-queue bot
pushed a commit
that referenced
this issue
Feb 20, 2025
Converting headers from config schema v0.2.0 to v0.3.0 was causing a nil dereferencing issue by incorrectly setting the name/value pair to a nil pointer. Added a test in both the loading of the config in otelcol, as well as the migration code unit test. Fixes #12439 --------- Signed-off-by: Alex Boten <[email protected]> Co-authored-by: Bogdan Drutu <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As noted by @skandragon in #12332, there is a bug in v0.119.0 and v0.120.0 that causes the following panic at start when more than one
headers
is configured:Originally posted by @skandragon in #12332
The text was updated successfully, but these errors were encountered: