Skip to content

Avoid transaction tracing locks when tracing is disabled - #228

Merged
serprex merged 1 commit into
mainfrom
perf-queue-and-pump
Oct 23, 2026
Merged

serprex merged 1 commit into
mainfrom
perf-queue-and-pump

Conversation

@iskakaushik

@iskakaushik iskakaushik commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Transaction buffering still acquires span registry locks with tracing disabled, even though no transaction spans can be registered. These locks add unnecessary work to transaction lookup and abort handling.

Create and share a registry only when OTLP is configured. Otherwise, leave it absent so buffering skips registry lookups and cleanup. With OTLP enabled, pump, decoder, and buffer continue sharing transaction spans.

Split original #228 into independent PRs against main; retain this PR for registry lock optimization. Other changes extracted from original #228:

Comment thread src/source/source_feed.rs Resolved
Transaction buffering still locks a span registry when tracing is
disabled, even though no transaction spans can be registered. This adds
unnecessary work to transaction lookup and abort handling.

Create and share a registry only when OTLP is configured. Leave it absent
otherwise so buffering skips registry lookups and cleanup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@serprex serprex changed the title Skip txn span registry locks until an xid opens Avoid transaction tracing locks when tracing is disabled Oct 22, 2026
@serprex
serprex force-pushed the perf-queue-and-pump branch from 6139eff to b988159 Compare October 22, 2026 18:09
@serprex
serprex merged commit 6e5dc47 into main Oct 23, 2026
6 checks passed
@serprex
serprex deleted the perf-queue-and-pump branch October 23, 2026 01:27
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.

3 participants