-
Notifications
You must be signed in to change notification settings - Fork 874
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-appender questions #4935
Comments
I think the idea was this is an implementation detail of instrumentated appenders. If there is an end user use case for the API, I think we really should put it in the SDK repo. It looks so similar to the other repos in that API that it's already a smell for it to be separate, if renaming I would probably want to go ahead and move it up. |
A.d. 1&3 👍
We'd have to somehow force muzzle to ignore these sdk classes - I think we'd need #2556 (or something similar) to make that work. |
these methods would be in the library instrumentation, and the javaagent instrumentation wouldn't call them, so I thought muzzle will ignore already? |
@anuraaga another reason to consider moving it is to improve the U/X for library instrumentation users, as moving it would allow |
another reason to potentially move it and not wait for a "custom events" user api:
|
I have filed open-telemetry/opentelemetry-specification#2234 to discuss in the spec more on how to deal with a logs API. We definitely need a separate interface - after writing that, I suspect the most pragmatic will be actually renaming or repackaging to something internal and trying our best not to expose any logs APIs to users until there is an actual logs API in the spec. Though will see how that discussion goes. Going internal means only using from instrumentation we maintain - as we would have logback, log4j, jul anyways I guess it's practical enough. |
It's enough for them to be present in the helper class to be picked up. |
we decided to hide the instrumentation api/sdk under internal packages/artifacts, as there is no desire to create anything that could be mistaken for a log api. closing this and will open a new issue to track hiding them (targeted for this week's v1.10.0 release) |
Tracking some questions that came up during the initial
instrumentation-api-appender
PR (#4917)instrumentation-sdk-appender
dependency. maybe we can pull it in transitively from the library instrumentation? and even add api surface into the library instrumentation itself to accept theSdkLogEmitterProvider
, so user doesn't even need to know aboutinstrumentation-sdk-appender
?io.opentelemetry.instrumentation.api.appender
toio.opentelemetry.instrumentation.api.logs.appender
, to align withio.opentelemetry.instrumentation.api.log.LoggingContextConstants
?LoggingContextConstants
be moved to the appender api?After writing these down, I think I'm currently in favor of renaming
instrumentation-api-appender
toinstrumentation-api-logs
, and movingLoggingContextConstants
to that artifact, as it addresses items 1 and 3 above.The text was updated successfully, but these errors were encountered: