-
Notifications
You must be signed in to change notification settings - Fork 438
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
Implement Baggage ( prev: CorrelationContext ) #79
Comments
Hi, I would like to work on this task. My understanding is that baggage will have multiple key, value pairs. Do we need new type something like shared_ptr of unordered_map<string, string> in the variant of contextval for the same ? |
@nikhil1511 - Thanks for showing interest on this task. Baggage extracts and inserts information in Context object ( https://github.com/open-telemetry/opentelemetry-cpp/blob/main/api/include/opentelemetry/context/context.h). No new type should be needed for |
Thanks for the reply. But, baggage key "baggage" has multiple key value pairs as its value, right (example "key1=val1,key2=val2") ? So, how do we plan to support this in context ? Ideally "baggage" will be key in the context and value should be data structure representing "key1=val1,key2=val2". |
If required should be fine to create a new type in variant. Just ensure not to use any STL types (vector, maps, unordered_map ) within |
Hello Lalit, |
@nikhil1511 - My PR is still draft. I see your changes in right direction . Can you go through my PR once and incorporate required changes from there. Basically what we want is:
We need baggage api merged for our beta release which is planned for March end. See if we can come up with something soon. |
Also if you like to join our community meeting to discuss further, feel free to join coming week. You can find meeting details in repo root. |
@lalitb working on incorporating changes from your pr. I will try to put three separate PRs instead of my current PR where all following features are added
Do let me know if you think otherwise. |
@lalitb should I raise a new PR from main branch for trace_state refactoring ? I have kept many changes from your draft PR and extracted out some parsing logic of header string to common place. Also, planning to remove baggage part from the PR and add it in subsequent prs [Unit tests are not complete yet. So, I will raise after tests are complete.] |
Better to raise a new PR for this. |
@lalitb I have created a PR to be submitted to main branch. I am just waiting for couple of legal approvals (should be done quickly, I hope). Just wanted to give update. Link : nikhil1511#2 |
https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/correlationcontext/api.md
The text was updated successfully, but these errors were encountered: