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

Make spanId a random 64-bit rather than using a counter #3201

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Dec 3, 2024

In the streaming tail worker design discussion it was decided that span IDs will follow the otel pattern and will be random 64-bit rather than monotonically increasing counter.

@jasnell jasnell requested review from a team as code owners December 3, 2024 00:00
@jasnell jasnell force-pushed the jsnell/invocation-span-context-span-id branch from 489b789 to dc32557 Compare December 3, 2024 00:31
Copy link
Member

@anonrig anonrig left a comment

Choose a reason for hiding this comment

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

I assume it's not a breaking change, right?

src/workerd/io/trace.c++ Show resolved Hide resolved
@jasnell
Copy link
Member Author

jasnell commented Dec 3, 2024

Not a breaking change because nothing is relying on this right now.

@jasnell jasnell force-pushed the jsnell/invocation-span-context-span-id branch from 5020239 to 63efc4d Compare December 3, 2024 14:50
@jasnell jasnell merged commit fb03c6a into main Dec 3, 2024
15 checks passed
@jasnell jasnell deleted the jsnell/invocation-span-context-span-id branch December 3, 2024 16:57
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.

2 participants