Skip to content

Document pgx driver latency caveat with full DBM propagation mode - #38534

Draft
pierreln-dd wants to merge 1 commit into
masterfrom
pierreln-dd/document-pgx-dbm-propagation-caveat
Draft

Document pgx driver latency caveat with full DBM propagation mode#38534
pierreln-dd wants to merge 1 commit into
masterfrom
pierreln-dd/document-pgx-dbm-propagation-caveat

Conversation

@pierreln-dd

Copy link
Copy Markdown
Contributor

What does this PR do? What is the motivation?

Adds a callout to the Go tab of Connect DBM and APM warning about a latency regression when using the pgx driver with full propagation mode.

pgx caches prepared statements by query text. Because full mode injects unique trace context into each query, it defeats this cache and forces the database to re-plan every query. Recommends service mode as a workaround.

Merge instructions

Merge readiness:

  • Ready for merge

Additional notes

Add a callout to the Go tab of Connect DBM and APM warning that
enabling full propagation mode with the pgx driver can force
statement re-planning and increase query latency, since pgx caches
prepared statements by query text and full mode injects unique trace
context per query.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Preview links (active after the build_preview check completes)

Modified Files

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