Skip to content
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

Propagation: TextMap propagator getter must provide a keys method #1084

Closed
codeboten opened this issue Sep 8, 2020 · 5 comments · Fixed by #1196
Closed

Propagation: TextMap propagator getter must provide a keys method #1084

codeboten opened this issue Sep 8, 2020 · 5 comments · Fixed by #1196
Assignees
Labels
api Affects the API package. good first issue Good first issue release:required-for-ga To be resolved before GA release

Comments

@codeboten
Copy link
Contributor

As per specification, the Getter argument must provide a Keys method

The Keys function MUST return the list of all the keys in the carrier.

https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/context/api-propagators.md#keys

@codeboten codeboten added api Affects the API package. release:required-for-ga To be resolved before GA release labels Sep 8, 2020
@codeboten codeboten added the good first issue Good first issue label Sep 24, 2020
@nprajilesh
Copy link
Contributor

@codeboten I'll take this up. Could you assign this to me?

@codeboten
Copy link
Contributor Author

Done, thanks!

@nprajilesh
Copy link
Contributor

Hey @codeboten , could use some help understanding this => I went through the spec and the existing codebase and my understanding is that currently when the extract method is called, a get function is passed to it as a param.

If we have to modify Getter to have both get() and keys() as functions, we will have to make Getter a class.

Doing this change would mean we would have to change how the get method is currently being passed and invoked in extractors in other files like B3format where we are just passing a method and not an object of a class

Is my understanding right? Would I have to change the files where getter is being used as well?

@codeboten
Copy link
Contributor Author

@nprajilesh yes that is my understanding of how this feature should be implemented.

@nprajilesh
Copy link
Contributor

@codeboten Could you check if the implementation in this PR #1196 is ok? If so, I will make it ready for review.

@codeboten codeboten added the rc1 label Oct 29, 2020
srikanthccv pushed a commit to srikanthccv/opentelemetry-python that referenced this issue Nov 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Affects the API package. good first issue Good first issue release:required-for-ga To be resolved before GA release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants