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

Javascript configuration prototype #49

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

martinkuba
Copy link
Contributor

@martinkuba martinkuba commented Feb 16, 2023

For this prototype, I have converted the yaml configuration file to JSON since it is easier to read in JS. There are various yaml libraries, so I can change it to yaml if needed.

For dynamic loading of modules, I have used the import() function. It is an async operation, which means that applying the configuration would by async. This in turn means that potentially some data may be missed during startup (if the app creates spans/metrics/logs immediately on startup). Alternatively, we could use require(), which is a synchronous call.

The mapping of processor/exporter/etc. names to packages/classes will have to be hard-coded (or mapped somewhere).

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.

1 participant