Skip to content

Improve derivation for TraceId.Gen & SpanId.Gen#736

Merged
catostrophe merged 1 commit intomasterfrom
feat/better-traceid-spanid-gens
Apr 25, 2022
Merged

Improve derivation for TraceId.Gen & SpanId.Gen#736
catostrophe merged 1 commit intomasterfrom
feat/better-traceid-spanid-gens

Conversation

@catostrophe
Copy link
Copy Markdown
Member

I thought about @ybasket's #732 (comment) and decided to make the derivation of TraceId.Gen/SpanId.Gen more flexible.

Now an end user can:

  1. either use the default generators based on ThreadLocalRandom
  2. or provide a different RNG instance <- this is new
  3. or provide a fully custom generators

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants