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 part 9 #486

Merged
merged 9 commits into from
Jul 29, 2024

Conversation

LikeTheSalad
Copy link
Contributor

Migrates the startup module to the new instrumentation API.

This is the last instrumentation module that the android-agent module has a dependency on.

@LikeTheSalad LikeTheSalad requested a review from a team July 23, 2024 09:43
import io.opentelemetry.android.config.OtelRumConfig
import io.opentelemetry.sdk.trace.export.SpanExporter

class TestInitializationEvents : InitializationEvents {
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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.

@LikeTheSalad LikeTheSalad merged commit 2bba3d7 into open-telemetry:main Jul 29, 2024
3 checks passed
@LikeTheSalad LikeTheSalad deleted the instrumentation-api-p9 branch July 29, 2024 13:09
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.

2 participants