-
Notifications
You must be signed in to change notification settings - Fork 44
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 part 9 #486
Instrumentation API part 9 #486
Conversation
android-agent/src/main/java/io/opentelemetry/android/initialization/InitializationEvents.kt
Outdated
Show resolved
Hide resolved
import io.opentelemetry.android.config.OtelRumConfig | ||
import io.opentelemetry.sdk.trace.export.SpanExporter | ||
|
||
class TestInitializationEvents : InitializationEvents { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the same as the noop version? Can we reuse that instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's kinda the same, though the reason I created it was for this test. So that the test can verify that the InitializationEvents.get()
function does search for implementations in the classpath. If no implementation is found, then the function returns the noop impl, so that's why I couldn't use the same one for the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, I think that makes sense then.
Migrates the
startup
module to the new instrumentation API.This is the last instrumentation module that the
android-agent
module has a dependency on.