Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conn: Advertise driver's name & version in STARTUP #1702

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

wprzytula
Copy link
Contributor

Advertising driver's name in the system.clients table can be helpful when debugging issues, e.g. when a connection imbalance occurs and allows to narrow down the culprit application/driver better.

The main module name is stored in a const in version.go.
The replaced module name and the version are fetched from the binary runtime information, where it comes from GitHub metadata (release tag).
Credits to @zimnx for this idea!

I've tested this manually using my fork. The version has shown correctly in system.clients.

Advertising driver's name in the system.clients table can be helpful
when debugging issues, e.g. when a connection imbalance occurs and
allows to narrow down the culprit application/driver better.
@wprzytula
Copy link
Contributor Author

The failure in CI seems to be unrelated to this PR.

@martin-sucha martin-sucha merged commit a2566b8 into apache:master Jun 12, 2023
@martin-sucha
Copy link
Contributor

Looks good to me. Merged. Thanks!

@wprzytula wprzytula deleted the advertise-upstream branch June 12, 2023 10:06
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