-
Notifications
You must be signed in to change notification settings - Fork 828
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
Add BaseScopeManager interface #66
Add BaseScopeManager interface #66
Conversation
13eaf10
to
11d6eba
Compare
@vmarchaud #65 has been merged, please rebase with the master. |
ac02295
to
4c08972
Compare
I've changed the interface based on all feedbacks @mayurkale22 @rochdev @draffensperger |
921366f
to
28ba32a
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #66 +/- ##
=======================================
Coverage 98.03% 98.03%
=======================================
Files 13 13
Lines 204 204
Branches 8 8
=======================================
Hits 200 200
Misses 4 4 |
Given that this is just an interface for now, would it make sense to have it in I like the idea of having the actual implementations be in their own packages, but not sure the interface needs its own. @rochdev WDYT? |
@draffensperger I believe the goal was the package to be usable outside of opentelemetry, so having the interface in |
LGTM @mayurkale22 @danielkhan is it fine to use |
I think it is fine to use |
28ba32a
to
c0e1a10
Compare
Addressed comments once again, i believe it's good to land now. |
c0e1a10
to
6bc6c00
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 would rename the first parameter of bind
to target
since it may not be an object but otherwise LGTM.
@vmarchaud Feel free to handle it in separate PR, merging it now. Thanks for the work and PR! |
* Add context-base and context-asynchooks packages * add BaseScopeManager interface open-telemetry#46
Based on #65
I mostly based the API on the Opencensus one, i will explain the choice i made for each function so we have a starting point for the discussion.