Skip to content

feat: add sql transaction instrumentation#1305

Open
giortzisg wants to merge 2 commits into
feat/sql-lexerfrom
feat/sql-txn
Open

feat: add sql transaction instrumentation#1305
giortzisg wants to merge 2 commits into
feat/sql-lexerfrom
feat/sql-txn

Conversation

@giortzisg
Copy link
Copy Markdown
Contributor

Description

Add transaction instrumentation

Issues

Changelog Entry Instructions

To add a custom changelog entry, uncomment the section above. Supports:

  • Single entry: just write text
  • Multiple entries: use bullet points
  • Nested bullets: indent 4+ spaces

For more details: custom changelog entries

Reminders

@giortzisg giortzisg requested a review from sl0thentr0py May 19, 2026 09:50
@giortzisg giortzisg self-assigned this May 19, 2026
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 19, 2026

GO-140

Copy link
Copy Markdown
Member

@sl0thentr0py sl0thentr0py left a comment

Choose a reason for hiding this comment

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

can you explain briefly why you need the tx reference on conn and the conn/span reference on tx? If the lifecycle is clean, we shouldn't in theory need this circular references?

Comment thread sql/conn.go
type sentryConn struct {
conn driver.Conn
cfg *config
mu sync.RWMutex
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.

why do we need the mutex?

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.

2 participants