-
Notifications
You must be signed in to change notification settings - Fork 58
[WIP] driver metadata #1432
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
base: main
Are you sure you want to change the base?
[WIP] driver metadata #1432
Conversation
c7a91f2
to
30b47ec
Compare
8cf2546
to
c28c354
Compare
Qodana Community for JVMIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked View the detailed Qodana reportTo be able to view the detailed Qodana report, you can either:
To get - name: 'Qodana Scan'
uses: JetBrains/[email protected]
with:
upload-result: true Contact Qodana teamContact us at [email protected]
|
final @NonNull HostSpec hostSpec) { | ||
|
||
final String connectionAttributes = String.format( | ||
"_jdbc_wrapper_name:aws_jdbc_driver,_jdbc_wrapper_version:%s,_jdbc_wrapper_plugins:%s", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reporting metrics for MySQL
// We'd like to make this query as "unique" as possible so we add such wierd WHERE conditions. | ||
// That helps to keep this query in pg_stat_statements. | ||
return String.format( | ||
"SELECT /* _driver:aws_jdbc_driver,_driver_version:%s,_jdbc_wrapper_plugins:%s */ 'version', VERSION()" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reporting metrics with query comment for PG.
c367338
to
4b34e04
Compare
Summary
Provide driver metadata as query comment, or a connection attributes
Additional Reviewers
@karenc-bq
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.