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

Add file configuration example #207

Merged
merged 4 commits into from
Sep 13, 2023

Conversation

jack-berg
Copy link
Member

Leaving as draft for now as this depends on code which has yet to be released.

@jack-berg jack-berg marked this pull request as ready for review September 11, 2023 16:22
@jack-berg jack-berg requested review from a team September 11, 2023 16:22
processors:
- batch:
exporter:
console: {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does {} mean? is that a yaml thing? thx

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YAML is a superset of JSON, and {} is an empty object in json.

The way that the jackson unmarshaling works, if I omit the empty object, then the console property of the exporter object will be null, leaving no indication that the user configured the exporter to be console.

exporter:
  console:
// Results in exporter.getConsole() == null

exporter:
  console: {}
// Results in exporter.getConsole() != null

Maybe there's a way to configure jackson such that the {} isn't needed 🤔

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe there's a way to configure jackson such that the {} isn't needed 🤔

this would be nice, I could see this being a common use confusion, and I don't recall the collector yaml configuration needing these

Comment on lines +56 to +57
// shutdown to ensure data is flusehdd
openTelemetrySdk.shutdown().join(10, TimeUnit.SECONDS);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does ConfigurationFactory use autoconfigure under the hood? (wondering since I think autoconfigure registers flushing shutdown hook?)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No it doesn't, I need to update ConfigurationFactory to register shutdown hooks!

build.gradle Outdated Show resolved Hide resolved
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.

2 participants