-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Replace model imports with jaeger-idl #6595
Replace model imports with jaeger-idl #6595
Conversation
ah, crap
don't think this can be merged on its own, need to make full migration to jaeger-idl as part of the same PR. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6595 +/- ##
==========================================
- Coverage 96.11% 96.09% -0.03%
==========================================
Files 366 366
Lines 20949 20949
==========================================
- Hits 20136 20131 -5
- Misses 618 622 +4
- Partials 195 196 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@yurishkuro |
can we copy jaegerreceiver into cmd/jaeger/internal/receiver/jaegerreceiver? Basically we need to break the circular dependency loop, I don't see another way other than copying. We will probably also need to copy kafka receiver / producer. Zipkin receiver should be upgraded in OTEL upstream to de-couple. Worse case copy it too. |
Suggestion - if you have a proof of concept that copying breaks the dependency hell, then I would suggest putting a separate PR with the copy of those modules as is, and then a separate PR (this one) with swapping the models across the code base. |
okay i'll try copying with keeping module swap and look if it compiles and runs well and give you screenshots will use and after that if it works I'll make the second pr and then come back here as you stated |
@yurishkuro
I only copied I think I can start now with a copy of those modules |
ok, but why is CI all broken? Do the binaries actually run, or are we getting that duplicate registration error? |
maybe you didn't push, but I would expect to see a change in cmd/jaeger/internal/components where we swap OTEL components for the local copies. |
yes this what happened for ci it test will fail because of duplicate registration error but it fixes when I manually update |
@yurishkuro |
I think I prefer to continue with this PR first by adding more copied modules until we get to a green build. I don't think you should be changing |
Maybe it's worth giving it a try in another PR before you spend more time on copying and renaming. Aliases could be a much easier path. |
Yes. Basically hollow-out model.pb.go and proto-gen/api_v2/*.go to only contain aliases to types / interfaces (also delete extensions to model, since we moved them to idl), and see if everything else just works. |
okay will give it a try |
) ## Which problem is this PR solving? - part of #6595 - part of #6494 ## Description of the changes - change models ## How was this change tested? - `make lint`, `make test` ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [ ] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `npm run lint` and `npm run test` --------- Signed-off-by: nabil salah <nabil.salah203@gmail.com>
we don't need to copy any modules now, just perform the imports replacement |
okay will do so |
Signed-off-by: nabil salah <nabil.salah203@gmail.com>
f88b9d6
to
d263ad9
Compare
Signed-off-by: nabil salah <nabil.salah203@gmail.com>
Signed-off-by: nabil salah <nabil.salah203@gmail.com>
@yurishkuro make sure to look at this
also I think now we can Upgrade OTEL as next step :D |
@@ -19,7 +19,7 @@ import ( | |||
"google.golang.org/grpc/status" | |||
|
|||
"github.com/jaegertracing/jaeger/internal/proto/api_v3" | |||
"github.com/jaegertracing/jaeger/model" | |||
OTELModel "github.com/jaegertracing/jaeger/model" |
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.
Why do we need this?
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.
@yurishkuro
to use model/otelids.go
because in this file we need both imports
🎉 woohoo |
that's awesome 😄 |
Which problem is this PR solving?
Description of the changes
How was this change tested?
make test
Checklist
jaeger
:make lint test
jaeger-ui
:npm run lint
andnpm run test