You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: failed to get config: cannot unmarshal the configuration: decoding failed due to the following error(s):
error decoding 'exporters': error reading configuration for "otlphttp": decoding failed due to the following error(s):
'headers[AUTH-TOKEN]' expected type 'configopaque.String', got unconvertible type 'int', value: '123'
2024/08/20 21:23:23 collector server run finished with error: failed to get config: cannot unmarshal the configuration: decoding failed due to the following error(s):
error decoding 'exporters': error reading configuration for "otlphttp": decoding failed due to the following error(s):
'headers[AUTH-TOKEN]' expected type 'configopaque.String', got unconvertible type 'int', value: '123'
The text was updated successfully, but these errors were encountered:
dmitryax
changed the title
Failing expansion of map string values that look like an other type
Failing expansion of map string values that look like another type
Aug 21, 2024
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
<!-- Issue number if applicable -->
Use string value for stringy types
#### Link to tracking issue
Fixes#10937
<!--Describe what testing was performed and which tests were added.-->
#### Testing
Adds tests for stringy type recognition and adds end to end tests
---------
Co-authored-by: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com>
Describe the bug
The issue is similar to #10552 (comment) still can be hit if an expansion is part of a map value.
Steps to reproduce
Run collector with a config like:
and
AUTH_TOKEN
env var set to123
What did you expect to see?
Collector to start.
What did you see instead?
Collector fails with
The text was updated successfully, but these errors were encountered: