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

Fix documentation example for OpentelemetryProcessPropagator #220

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

bamorim
Copy link
Contributor

@bamorim bamorim commented Oct 24, 2023

I might have got things wrong, but reading the documentation and the code it seems that the doc was wrong, so I'm opening this really small PR to fix that. Hopefully you dont mind ❤️

The example calling OpentelemetryProcessPropagator.fetch_parent_ctx was passing the key to the /1 arity function, which is not the argument it expects. To specify the key you also need to specify the depth first, using the /2 arity function: OpentelemetryProcessPropagator.fetch_parent_ctx(depth, key)

The example calling `OpentelemetryProcessPropagator.fetch_parent_ctx` was passing the key to the `/1` arity function, which is not the argument it expects. To specify the key you also need to specify the depth first, using the `/2` arity function: `OpentelemetryProcessPropagator.fetch_parent_ctx(depth, key)`
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 24, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: bamorim / name: Bernardo Amorim (e108915)

@bryannaegele bryannaegele merged commit e62612f into open-telemetry:main Oct 25, 2023
53 of 66 checks passed
@yordis yordis mentioned this pull request Dec 12, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants