Skip to content

jdbi3: converts to StatementLogger and follows existing style#1464

Merged
codefromthecrypt merged 2 commits intomasterfrom
jdbi3
May 28, 2025
Merged

jdbi3: converts to StatementLogger and follows existing style#1464
codefromthecrypt merged 2 commits intomasterfrom
jdbi3

Conversation

@codefromthecrypt
Copy link
Copy Markdown
Member

This converts jdbi3 instrumentation to be more like MongoDB in implementation: configured by instance, not static like mysql connection driver. It also pares back the data policy to be the same as MySQL: this allows us a base case to move forward with. Finally, it switches implementation to a StatementLogger, so that exceptions are visible.

Infrastructure wise, this re-uses the more recent style from instrumentation here, including docker for the IT.

This is a follow-up to #1460 before we release a version, so API breaks are not an issue, yet.

Thanks to @reftel for the initial work on this, and @reta on the review of that. I did my best in RATIONALE.md here to explain why the changes are important.

Signed-off-by: Adrian Cole <adrian.cole@elastic.co>
@codefromthecrypt codefromthecrypt requested review from anuraaga and reta May 28, 2025 03:38
Signed-off-by: Adrian Cole <adrian.cole@elastic.co>
@codefromthecrypt codefromthecrypt merged commit e18172c into master May 28, 2025
4 checks passed
@codefromthecrypt codefromthecrypt deleted the jdbi3 branch May 28, 2025 04:46
@codefromthecrypt
Copy link
Copy Markdown
Member Author

@reta if you don't mind, please handle any follow-ups and/or cut the next brave when ready.!

@reta
Copy link
Copy Markdown
Contributor

reta commented May 28, 2025

@reta if you don't mind, please handle any follow-ups and/or cut the next brave when ready.!

Will do, thanks a lot @codefromthecrypt !

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