Skip to content

Issue/827 - #829

Merged
butonic merged 2 commits into
mainfrom
issue/827
Oct 1, 2026
Merged

butonic merged 2 commits into
mainfrom
issue/827

Conversation

@butonic

@butonic butonic commented Sep 30, 2026

Copy link
Copy Markdown
Member

fixes #827

Derive a per-event context from the event's W3C trace context (event.GetTraceContext) and wrap each event in its own span, via an extracted handlePostprocessingEvent. The previous single span lived for the goroutine's entire lifetime and the event's trace context was ignored.

The context is also seeded with the event's initiator so re-published events keep it, and the handler logs through the configured fs.log instead of a fresh logger.New().

Making the context per-event also fixes #827: the loop-level context no longer persists across events, so the value layers added by session.Context no longer accumulate in the consumer goroutine.

Related: #827
…tils fork)

Mirror of the change in pkg/storage/pkg/decomposedfs: derive a per-event context from the event's W3C trace context and wrap each event in its own span via an extracted handlePostprocessingEvent. The context is seeded with the event's initiator and the handler logs through fs.log. The per-event context also fixes #827 in this copy.

Related: #827
@butonic butonic self-assigned this Sep 30, 2026
@butonic butonic moved this to In Progress in OpenCloud Team Board Sep 30, 2026
AlexAndBear
AlexAndBear previously approved these changes Oct 1, 2026
@AlexAndBear
AlexAndBear dismissed their stale review October 1, 2026 07:05

just a test

@pbleser-oc pbleser-oc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm, delegating the processing of a single event to a func and then making use of defer to close the context 👍🏻

@butonic
butonic merged commit d464478 into main Oct 1, 2026
18 of 20 checks passed
@butonic
butonic deleted the issue/827 branch October 1, 2026 07:44
@openclouders openclouders mentioned this pull request Oct 1, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Performance degradation of upload postprocessing

3 participants