Replies: 1 comment
-
D'oh, yes it's me being dense after all; I had set However, I still think the error message could be improved for this case. (As a guess: if there is any YAML decoding error, it treats the whole config as a plain string instead?) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
(Raising this as a discussion rather than an issue, as I'm not sure if it's me being dense)
Using otelcol-contrib 0.109.0 under Linux, with the following attempt at
config.yaml
:The collector fails to start, with the following error:
That's not very helpful in telling me what the error is, or where the error is!
I had to do a binary chop on the config in order to identify the problematic line. It turns out the fault is here:
If I comment out that line, then the collector starts successfully.
Actually, I have three issues now:
I searched for the string "retrieved value (type=string) cannot be used as a Conf" in both issues and discussions, in both repos "opentelemetry-collector" and "opentelemetry-collector-contrib", and found zero results.
Beta Was this translation helpful? Give feedback.
All reactions