Skip to content

Add a new SharedSpanHandle::Inactive variant - #144

Merged
TheJokr merged 1 commit into
cloudflare:mainfrom
bobrik:ivan/empty-stack
Oct 1, 2025
Merged

TheJokr merged 1 commit into
cloudflare:mainfrom
bobrik:ivan/empty-stack

Conversation

@bobrik

@bobrik bobrik commented Sep 30, 2025

Copy link
Copy Markdown
Collaborator

It's expected that most of the spans are not sampled. We still clone and stack them, which adds up. Let's add a new variant for unsampled spans that is cheaper to clone.

Comment thread foundations/src/telemetry/tracing/mod.rs Outdated
It's expected that most of the spans are not sampled. We still clone
and stack them, which adds up. Let's add a new variant for unsampled
spans that is cheaper to clone.
@bobrik bobrik changed the title Do not stack empty spans Add a new SharedSpanHandle::Inactive variant Sep 30, 2025
@TheJokr
TheJokr merged commit a71d56b into cloudflare:main Oct 1, 2025
18 checks passed
@TheJokr TheJokr mentioned this pull request Oct 1, 2025
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