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

Do not count skipped baggage entries #2079

Merged
merged 3 commits into from
Aug 31, 2021
Merged

Conversation

ocelotl
Copy link
Contributor

@ocelotl ocelotl commented Aug 30, 2021

Fixes #2071

@ocelotl ocelotl self-assigned this Aug 30, 2021
@ocelotl ocelotl requested review from a team, aabmass and srikanthccv and removed request for a team August 30, 2021 10:25
@@ -68,6 +65,9 @@ def extract(
urllib.parse.unquote(value).strip(),
context=context,
)
total_baggage_entries -= 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious as to why we are counting backwards as opposed to simply just counting to _MAX_PAIRS?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷 It was implemented like that, so I kept the implementation.

@lzchen lzchen merged commit 91d1900 into open-telemetry:main Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Skipped Baggage entries in propagation still count against max entries
4 participants