Skip to content

Fix: Harden OTEL nested span parenting for auth/state/flush - #801

Merged
dzikowski merged 3 commits into
mainfrom
fix/otel-span-order-and-parenting
Aug 6, 2026
Merged

Fix: Harden OTEL nested span parenting for auth/state/flush#801
dzikowski merged 3 commits into
mainfrom
fix/otel-span-order-and-parenting

Conversation

@dzikowski

Copy link
Copy Markdown
Collaborator

Use stub active span as fallback (ctx.otelFallbackSpan), rebind it while inside GalaTransaction/authorize/handle/afterTransaction so children stay nested when AsyncLocalStorage is dropped.

dzikowski and others added 3 commits August 6, 2026 14:32
Use stub active span as fallback (ctx.otelFallbackSpan), rebind it while
inside GalaTransaction/authorize/handle/afterTransaction so children stay
nested when AsyncLocalStorage is dropped.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@dzikowski
dzikowski merged commit 81ed79b into main Aug 6, 2026
13 checks passed
@dzikowski
dzikowski deleted the fix/otel-span-order-and-parenting branch August 6, 2026 14:09
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.

1 participant