-
Notifications
You must be signed in to change notification settings - Fork 684
Non-config keys queried when using system metrics with custom configuration #1125
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
Comments
@ocelotl I think we should remove the instrumentation level configuration altogether in favor of views |
That would be a breaking change 🤷 |
Right, my bad. @aabmass I see your point, it would be better to provide as little instrumentation-specific configuration mechanisms as possible, ideally zero. Nevertheless, for this particular case, even when we can select the instruments that are to be used with the configuration dictionary keys and views, we can only do the configuration of specific system metrics with the configuration dictionary values, which I think is hard to do with views only. I think this is a good point that will lead us into further discussion regarding how specific instrumentations are to be configured. I think views can be used but I am not sure that they will be able to do all the fine tuning certain instrumentations need, and for that we will have to use instrumentation specific mechanisms like this one or extend views somehow. For the time being, this PR solves a bug now, in my opinion we are better having this merged to fix it and we can discuss the configuration topic later. |
@ocelotl |
* Check keys in config before creating instruments Fixes #1125 * Fix lint
Was trying this example but with this code instead:
Got these errors:
The text was updated successfully, but these errors were encountered: