-
Notifications
You must be signed in to change notification settings - Fork 701
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
Refactor tracing implements #312
Conversation
Codecov Report
@@ Coverage Diff @@
## v2 #312 +/- ##
==========================================
- Coverage 83.58% 77.03% -6.55%
==========================================
Files 30 30
Lines 932 932
==========================================
- Hits 779 718 -61
- Misses 114 168 +54
- Partials 39 46 +7
Continue to review full report at Codecov.
|
@bwplotka I need some review to confirm the tracing interface since it implements parts of |
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.
Hey, can we mention what is high lvl plan here? If I understand correctly it is required to have both opentelemetry and opentracing, right?
TBH in this case I would first add opentelemetry package and check if have anything to reuse between those two or not.
Problem with this is that opentracing
and opentelemetry
are actually interfaces. So creating an interface that fits both might be an overkill. What do you think? (:
Well,
But the problem is the behavior from two libs are not the same while handling For instance, when invoking Furthermore, attributes which been using in the event are different.
span.AddEvent(ctx, "message",
kv.Key("message.type").String("SENT"),
kv.Key("message.id").Int(id),
kv.Key("message.uncompressed_size").Int(proto.Size(body)),
) So, I think there are two solutions to this.
|
Hi @XSAM Let's get back to this! I feel like option number 2 is too similar too reporter, so kind of no point in having separate span interface, no? (: That's why we have two options I think
|
0ddf726
to
0590b70
Compare
You're right, option 2 is too similar with Now, I use option 1 as a solution. |
@yashrsharma44 I will continue to work on this PR. Thanks for the reminder. 😄 |
I updated this PR. @yashrsharma44 @bwplotka PTAL ;) This PR seems huge and not easy to review. I can split this if you prefer. |
Any updates on this one? |
Hi @XSAM!
in a separate PR? Would be easy to review the changes.
I would be happy to review the changes and help you out in finishing up a subpart, in case you don't have time to address all 😄 |
I think it's actually reviewable, in one place as those are new things mostly. But it will take time. Still, I think we should do it before v2? |
Are you around @XSAM to work on it (rebase etc)? Also I am removing tracing here, to avoid modifications there that will have to be there as part of this Pr anyway (#394 (comment)) |
Sorry for the late response, I was busy recently. I'm still working on it; will try to split these changes for clarity. |
Split from #275