Skip to content
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

ConfigurationFactory requires '{}' for keys when no configuration is present #5828

Closed
jack-berg opened this issue Sep 13, 2023 · 0 comments · Fixed by #5829
Closed

ConfigurationFactory requires '{}' for keys when no configuration is present #5828

jack-berg opened this issue Sep 13, 2023 · 0 comments · Fixed by #5829
Labels
Feature Request Suggest an idea for this project

Comments

@jack-berg
Copy link
Member

Suppose you want to configure the console exporter using file configuration. You might have a configuration like:

tracer_provider:
  processors:
    - batch:
         exporter:
           console:

But this wont work. For the reason described here, you need to configure console with an empty object {}:

tracer_provider:
  processors:
    - batch:
         exporter:
           console: {}

This is inconvenient, error prone, and surprising. Investigate jackson configuration options to see if we can remove this requirement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Suggest an idea for this project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant