-
Notifications
You must be signed in to change notification settings - Fork 42
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 2 to main #416
Instrumentation API part 2 to main #416
Conversation
* Moving network provider tools to services * Moving network service related tests * Moving network attr init feature to the agent * Making network instrumentation depend on the agent * Initializing CurrentNetworkProvider as service * Clean up config * Created NetworkChangeInstrumentation * Updated network monitor tests * Clean up * Renaming installOn by start * Adding internal class docs * Fixing visible for tests comment * Rename .java to .kt * Removing Carrier.Builder
# Conflicts: # instrumentation/network/src/test/java/io/opentelemetry/android/instrumentation/network/NetworkChangeMonitorTest.java
There look to be a bunch of unrelated changes in this PR. @LikeTheSalad can you look into that plz? |
Do you mean changes that are not in the main branch? If you could point to one in specific @breedx-splk I'll have a deeper look tomorrow |
Yeah, there are a TON. Like all the demo app stuff, and some of the semconv stuff from earlier. Just look at the files list and you'll see what I'm talking about. |
I see. Yeah all the semconv changes and the demo app ones have been recently merged into |
Oh, I think I completely missed the fact that the part 1 and part 2 PRs (and now part 3) were going against this branch. Why do you want to build up all those compounded changes into a branch before merging to main? I'm not seeing the benefit. I'd much rather review and merge smaller PRs into main. Having the changes in this other branch also means that the same changes are getting reviewed twice, as well as all these redundant changes from main (semconv, demo app, etc). How do you propose that we review this? |
Ah, got it, my bad, I think I didn't explain it properly in the previous PR. Part 1 was merged into Ok so what happened was that, when I was working on part 2, I noticed that those changes would remove one of the current auto instrumentations provided in the agent (the network change one) because it was removed from the Based on that, I was concerned that the new instrumentation API work would take too long, causing that, should we create a new build in the meantime, it wouldn't have some of the instrumentations available and I didn't want to cause issues for someone using it now until it was all ready to mention the breaking change in a single build release. This is why I decided to keep all the parts in a single feature branch until it was all ready to finally add all the changes into
This is a good point, I think I didn't think this part through, I was mostly focusing on not breaking |
@breedx-splk Based on the above, I've just changed the base branch of this PR to |
String name = null; | ||
String mobileCountryCode = null; | ||
String mobileNetworkCode = null; | ||
String isoCountryCode = null; |
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.
nit: should probably move these declarations closer to their usage.
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.
They are used in line 44 but they can change before reaching that line, that's why they're not close to line 44 because of the "ifs" needed to re-set them before that.
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.
Déjà vu!! 😁
Supersedes #415