Skip to content

processor_sampling: tail: fix spans reconcile processes - #10391

Merged
edsiper merged 2 commits into
masterfrom
sampling-reconcile-fix
May 29, 2025
Merged

processor_sampling: tail: fix spans reconcile processes#10391
edsiper merged 2 commits into
masterfrom
sampling-reconcile-fix

Conversation

@edsiper

@edsiper edsiper commented May 27, 2025

Copy link
Copy Markdown
Member

Fix #10248

This update corrects how spans are moved when constructing a tail‑sampled trace. Spans are now fully detached from their previous context before being added to the new one. The code deletes them from both the original scope‑span list and the global trace list, updates scope_span and ctx pointers, then links them to the new lists.

In addition it fixes a bug where cfl data structures like variants, kvlist and array items were referenced, now we do a hard copy.


Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

edsiper added 2 commits May 23, 2025 19:26
Signed-off-by: Eduardo Silva <eduardo@chronosphere.io>
Signed-off-by: Eduardo Silva <eduardo@chronosphere.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tail sampling crashing fluentbit

1 participant