-
Notifications
You must be signed in to change notification settings - Fork 508
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
feat: allow users to use different channels based on runtime in batch span processor #560
feat: allow users to use different channels based on runtime in batch span processor #560
Conversation
… span processor. Resole open-telemetry#520.
Codecov Report
@@ Coverage Diff @@
## main #560 +/- ##
=====================================
Coverage 54.5% 54.6%
=====================================
Files 97 98 +1
Lines 8534 8550 +16
=====================================
+ Hits 4659 4669 +10
- Misses 3875 3881 +6
Continue to review full report at Codecov.
|
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.
LGTM
* Add error messages based on error type.
Note that the types we used in `batch_message_channel` function and `TrySend` trait are all from `trace` mod. But the runtime doesn't live in trace mod. So we use another trait `TraceRuntime` to include all function and types that related `trace` mod
@jtescher I realized that the implementation used types from |
@TommyCpp seems good 👍 |
I tested a POC of the custom channel from the unbounded channel and it didn't seem to outperform the runtime version. I'd suggest we merge this PR as we have been investigating this issue for a while. |
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.
Agree. This looks really good. Nice work 👍
Great work @TommyCpp |
Resolve #520.
Close #533
Another proposed solution to remove mutex in batch span processors.
I tried to keep the type parameter within the channel types. But I don't think I figure out a way to do so without introducing a type parameter in
Runtime
. So currently allSender
s andReceiver
s fromRuntime
will have item type asBatchMessage
. Let me know there are better way to handle this.TODO: