-
Notifications
You must be signed in to change notification settings - Fork 805
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
Separate context propagation (OTEP 66) #769
Separate context propagation (OTEP 66) #769
Conversation
Codecov Report
@@ Coverage Diff @@
## master #769 +/- ##
==========================================
- Coverage 92.93% 92.39% -0.55%
==========================================
Files 233 239 +6
Lines 10545 12621 +2076
Branches 1028 1128 +100
==========================================
+ Hits 9800 11661 +1861
- Misses 745 960 +215
|
a28ab75
to
4ec7d98
Compare
@@ -45,6 +45,9 @@ | |||
"publishConfig": { | |||
"access": "public" | |||
}, | |||
"dependencies": { |
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.
API now depends on scope base because that is where context is. Context is a separate mechanism outside of the API and the SDK, but which is depended on by both.
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.
Maybe Context
and the dummy implementation should be moved like it was done with a other parts recently?
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 be willing to move Context into it's own package. @mayurkale22 wdyt?
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.
Still thinking on this, I will also check how other libraries are doing it.
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.
When we started it we decided to move it back so it could be used by other projects. However since it's started to get heavily linked to the OT specs (and not storing generic context) i would be in favor to move it
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.
@vmarchaud I'm sorry I don't understand, you would be in favor of context having it's own package or you would be in favor of moving it into core
/api
/other?
In order to keep PR short (off the top of head):
WDYT? |
btw, this is great work 💯 |
@open-telemetry/javascript-approvers I know this is a big change but I would appreciate some reviews here please |
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.
okay I did a quick pass and everything looks 👍
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.
Looks good to me. i think we can merge as-is and do refactor (like renaming to context-manager or moving the noop/interfaces inside API) on follow-up PR
I agree except that noop implementations won't ever be in the API in this case. Context is meant to be a standalone concept that the api and sdk both consume. |
@dyladan Indeed, i mixed things ^^ |
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
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
* feat: separate context propagation
* feat: separate context propagation
This PR is absolutely massive. Sorry about that but there was no real great way to split it up and still have it build/pass tests
Fixes #773
Which problem is this PR solving?
OTEP 66: https://github.com/open-telemetry/oteps/blob/master/text/0066-separate-context-propagation.md
Spec: open-telemetry/opentelemetry-specification#424
Short description of the changes
API
Scope Managers
null
(disabled, no active scope, etc)Core
Propagators (core and jaeger)
Plugins