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 1 #396

Merged
merged 16 commits into from
Jun 3, 2024

Conversation

LikeTheSalad
Copy link
Contributor

First part - Creating the API

@LikeTheSalad LikeTheSalad requested a review from a team May 30, 2024 16:40
Copy link
Contributor

@breedx-splk breedx-splk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Off to a great start here! Had a few comments, but nothing to slow down this effort. Thanks.

LikeTheSalad and others added 3 commits May 31, 2024 11:20
…tation/AndroidInstrumentation.kt

Co-authored-by: jason plumb <[email protected]>
…tation/AndroidInstrumentation.kt

Co-authored-by: jason plumb <[email protected]>
…tation/AndroidInstrumentationRegistry.kt

Co-authored-by: jason plumb <[email protected]>
Comment on lines 22 to 24
override fun getAll(): Collection<AndroidInstrumentation> {
return Collections.unmodifiableCollection(instrumentations.values)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to use the Java Collection types instead of the Kotlin ones?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean kotlin.collections.Collection?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, the kotlin.collections package in general.
The less we depend on java.* the easier it'll be to be KMP compatible in the future

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I was looking for a Collections.unmodifiableCollection equivalent, though it seems like toList should do. I've just made the changes. Cheers!

@LikeTheSalad LikeTheSalad merged commit a14dcaf into open-telemetry:main Jun 3, 2024
3 checks passed
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.

3 participants