-
Notifications
You must be signed in to change notification settings - Fork 585
fix(instrumentation-pg): connection string parsing #2715
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
fix(instrumentation-pg): connection string parsing #2715
Conversation
…trib into fix-connection-string-in-pool
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2715 +/- ##
=======================================
Coverage 92.41% 92.42%
=======================================
Files 171 171
Lines 8150 8169 +19
Branches 1653 1660 +7
=======================================
+ Hits 7532 7550 +18
- Misses 618 619 +1
|
hey @maryliag! can I please get a review on this PR? |
@nikmel2803 linter fails |
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.
Hi @nikmel2803, thank you for your contribution! I added a few comments/questions!
plugins/node/opentelemetry-instrumentation-pg/test/pg-pool.test.ts
Outdated
Show resolved
Hide resolved
…ttributes and fix tests
…trib into fix-connection-string-in-pool
hey @deejay1! |
@@ -138,13 +159,24 @@ export function getSemanticAttributesFromConnection( | |||
} | |||
|
|||
export function getSemanticAttributesFromPool(params: PgPoolOptionsParams) { | |||
// const connectionParams = getConnectionParams(params); |
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.
looks like you forgot to remove this line
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.
oh, right! fixed
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.
Thank you for your contribution!
Which problem is this PR solving?
Fixes #1415
Short description of the changes
connectionString
param in the PgPool constructorThe changes have also been tested in our org's telemetry setup.