Skip to content

Commit 9c1a893

Browse files
committed
fix(instrumentation-pg): fix default connection string parsing
1 parent 2a8b56f commit 9c1a893

File tree

1 file changed

+1
-1
lines changed
  • plugins/node/opentelemetry-instrumentation-pg/src

1 file changed

+1
-1
lines changed

plugins/node/opentelemetry-instrumentation-pg/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export function parseAndMaskConnectionString(connectionString: string): string {
118118
return url.toString();
119119
} catch (e) {
120120
// If parsing fails, return a generic connection string
121-
return 'postgresql://localhost';
121+
return 'postgresql://localhost:5432/';
122122
}
123123
}
124124

0 commit comments

Comments
 (0)