Skip to content

Use SeededRandomIdGenerator by default to prevent interference from random.seed - #457

Merged
alexmojaki merged 2 commits into
mainfrom
alex/SeededRandomIdGenerator-default
Sep 27, 2024
Merged

alexmojaki merged 2 commits into
mainfrom
alex/SeededRandomIdGenerator-default

Conversation

@alexmojaki

Copy link
Copy Markdown
Contributor

Fixes #437. It was closed already, but the request was reasonable, and I recently saw very different spans having the same trace and span ID in user data which was concerning. My best guess is that this was caused by a call to random.seed, so this should prevent that.

@codecov

codecov Bot commented Sep 27, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (06ec795) to head (8e5845d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #457   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          131       131           
  Lines         9754      9759    +5     
  Branches      1285      1286    +1     
=========================================
+ Hits          9754      9759    +5     

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

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 27, 2024 •

Copy link
Copy Markdown

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8e5845d
Status: ✅  Deploy successful!
Preview URL: https://8e41fc2d.logfire-docs.pages.dev
Branch Preview URL: https://alex-seededrandomidgenerator.logfire-docs.pages.dev

View logs

@alexmojaki
alexmojaki requested a review from Kludex September 27, 2024 11:51
@alexmojaki
alexmojaki merged commit e6b0f8c into main Sep 27, 2024
@alexmojaki
alexmojaki deleted the alex/SeededRandomIdGenerator-default branch September 27, 2024 11:59
petyosi pushed a commit that referenced this pull request Oct 1, 2024
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.

Spans overlap

2 participants