Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: Ensure span ids are 16 characters #3850

Merged
merged 3 commits into from
Dec 17, 2024
Merged

Conversation

knd775
Copy link
Contributor

@knd775 knd775 commented Dec 16, 2024

Storing span ids as longs causes leading zeroes to be lost. This restores them.

@knd775
Copy link
Contributor Author

knd775 commented Dec 16, 2024

Copy link
Collaborator

@jamescrosswell jamescrosswell left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @knd775 ! Looks like a pretty straight forward fix... I just left one comment about preventing a regression.

src/Sentry/SpanId.cs Show resolved Hide resolved
Copy link

codecov bot commented Dec 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.53%. Comparing base (495e742) to head (08cb3c0).
Report is 413 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3850      +/-   ##
==========================================
+ Coverage   75.73%   76.53%   +0.80%     
==========================================
  Files         357      389      +32     
  Lines       13466    14207     +741     
  Branches     2671     2858     +187     
==========================================
+ Hits        10198    10874     +676     
- Misses       2593     2640      +47     
- Partials      675      693      +18     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@jamescrosswell jamescrosswell left a comment

Choose a reason for hiding this comment

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

Fantastic - thanks @knd775 🙏🏻

@jamescrosswell jamescrosswell merged commit b283298 into getsentry:main Dec 17, 2024
22 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants