-
Notifications
You must be signed in to change notification settings - Fork 528
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
Support uploading traces in OpenTelemetry format (OTLP JSON) #2145
Support uploading traces in OpenTelemetry format (OTLP JSON) #2145
Conversation
a80f061
to
ced668d
Compare
Signed-off-by: Navin Shrinivas <karupal2002@gmail.com>
ced668d
to
b99756d
Compare
Signed-off-by: Navin Shrinivas <karupal2002@gmail.com>
39cceaf
to
ac50454
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2145 +/- ##
=======================================
Coverage 96.59% 96.59%
=======================================
Files 254 254
Lines 7629 7639 +10
Branches 1988 1990 +2
=======================================
+ Hits 7369 7379 +10
Misses 260 260 ☔ View full report in Codecov by Sentry. |
Hey, are you waiting for commits to meet the test requirement? I'd like to more this pr forward with necessary changes |
please make sure the CI is green. |
Signed-off-by: Navin Shrinivas <karupal2002@gmail.com>
And on a related question - is it possible to ensure that we have a unit test that catches this? |
Signed-off-by: Navin Shrinivas <karupal2002@gmail.com>
@@ -70,7 +70,7 @@ export const loadJsonTracesMiddleware = store => next => action => { | |||
} else { | |||
return next(action); | |||
} | |||
return next(action); // Consistent returns | |||
return undefined; |
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 is this the right behavior?
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.
I assume calling the next action is a pattern that needs to be maintained, it looks like a dangerous shortcut when you change it just to work around another problem. The right fix is to control the order of these middlewares, so that OTLP translator is invoked before the rest of the handlers.
…5155) ## Which problem is this PR solving? * Solves #4949 * In combination with jaegertracing/jaeger-ui#2145 ## Description of the changes - Incorporates changes from previous draft PR review - Adds middleware in frontend as well ## How was this change tested? - Unit tests and supplying valid and invalid OTLP traces using insomnia to test the API ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [x] 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`: `yarn lint` and `yarn test` --------- Signed-off-by: Navin Shrinivas <karupal2002@gmail.com> Signed-off-by: Yuri Shkuro <github@ysh.us> Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com> Co-authored-by: Yuri Shkuro <github@ysh.us>
Signed-off-by: Navin Shrinivas <karupal2002@gmail.com>
Signed-off-by: Navin Shrinivas <karupal2002@gmail.com>
Signed-off-by: Navin Shrinivas <karupal2002@gmail.com>
f40568f
to
2bd3a2f
Compare
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.
I tried a few other ways, but there's a complication with JaegerAPI returning a future while all other code paths are synchronous. Will merge as is.
thanks! |
It was fun working on this issues. Learnt a lot :) , any other issue that i can work on that are beginner friendly? |
Which problem is this PR solving?
Description of the changes
How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test