-
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
Copy jaegerTranslator and change it to use jaeger-idl mode #6595
base: main
Are you sure you want to change the base?
Copy jaegerTranslator and change it to use jaeger-idl mode #6595
Conversation
Signed-off-by: nabil salah <[email protected]>
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. |
Signed-off-by: nabil salah <[email protected]>
…bil-Salah/jaeger into change_jaegerTranslator_model
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6595 +/- ##
==========================================
- Coverage 96.23% 93.74% -2.50%
==========================================
Files 377 393 +16
Lines 21421 23444 +2023
==========================================
+ Hits 20614 21977 +1363
- Misses 614 1213 +599
- Partials 193 254 +61
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: nabil salah <[email protected]>
Signed-off-by: nabil salah <[email protected]>
Signed-off-by: nabil salah <[email protected]>
Signed-off-by: nabil salah <[email protected]>
@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. |
Signed-off-by: nabil salah <[email protected]>
yes this what happened for ci it test will fail because of duplicate registration error but it fixes when I manually update |
@yurishkuro |
Signed-off-by: nabil salah <[email protected]>
Signed-off-by: nabil salah <[email protected]>
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?
Description of the changes
internal/jptrace/translator
How was this change tested?
go test ./internal/jptrace/translator/
Checklist
jaeger
:make lint test
jaeger-ui
:npm run lint
andnpm run test