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

feat: remove tracestate, add lineage support to X-Ray propagator #1380

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
change lineage variable names
  • Loading branch information
ezhang6811 committed Jan 30, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit f2731f2763ba6a28ef6dca42fa8bcd99ca21cc7f
Original file line number Diff line number Diff line change
@@ -128,15 +128,15 @@ def is_valid_lineage?(lineage)
lineageSubstrings = lineage.split(':')
return false unless lineageSubstrings.length == 3

requestCounter = lineageSubstrings[0].to_i
hashedResourceId = lineageSubstrings[1]
loopCounter = lineageSubstrings[2].to_i

hashedResourceId.match?(/\A[a-zA-Z0-9]{8}\z/) &&
requestCounter >= 0 &&
requestCounter <= 32767 &&
loopCounter >= 0 &&
loopCounter <= 255
lineageCounter1 = lineageSubstrings[0].to_i
hashedString = lineageSubstrings[1]
lineageCounter2 = lineageSubstrings[2].to_i

hashedString.match?(/\A[a-zA-Z0-9]{8}\z/) &&
lineageCounter1 >= 0 &&
lineageCounter1 <= 32767 &&
lineageCounter2 >= 0 &&
lineageCounter2 <= 255
end
end
end