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

Instrumentation API Config vs autoconfigure ConfigProperties #6022

Closed
trask opened this issue May 13, 2022 · 2 comments · Fixed by #6360
Closed

Instrumentation API Config vs autoconfigure ConfigProperties #6022

trask opened this issue May 13, 2022 · 2 comments · Fixed by #6360

Comments

@trask
Copy link
Member

trask commented May 13, 2022

@anuraaga brought up whether we can consolidate these in the SIG meeting today. There's still time, as neither are declared stable (yet).

I looked through previous discussions, and this seems to be the primary issue:

Unfortunately that won't be possible with the current shape of this repo: instrumentation-api only uses OTel API, not the SDK

#3866 (comment)

This does sound like a dealbreaker unless someone has creative solution/ideas?

@mateuszrzeszutek
Copy link
Member

There's still time, as neither are declared stable (yet).

ConfigProperties is a part of the autoconfigure-spi, which is actually stable right now.

There was one idea of making Config an interface/abstract class, and keeping the actual implementation in the agent classloader, but I'm not sure whether it's a viable idea: we're using Config way before we get ConfigProperties, and we still need to have a concrete Config implementation for library instrumentation purposes.

One more reason for keeping Config is that it's completely safe, it never throws - it always returns the default value if something goes wrong. Which is probably the behavior what we want in advice/instrumentation code.

@mateuszrzeszutek mateuszrzeszutek added this to To do in Stable instrumentation-api via automation Jun 22, 2022
@jack-berg
Copy link
Member

One more reason for keeping Config is that it's completely safe, it never throws - it always returns the default value if something goes wrong. Which is probably the behavior what we want in advice/instrumentation code.

ConfigProperties has been extended with default getters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants