-
Notifications
You must be signed in to change notification settings - Fork 1k
Add JDBC URL parsing support for OceanBase, PolarDB and Lindorm #14790
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
Add JDBC URL parsing support for OceanBase, PolarDB and Lindorm #14790
Conversation
Change-Id: Ia3b5f6b74b40763c4df7fa0185223575a2c1b068
🔧 The result from spotlessApply was committed to the PR branch. |
return DbSystemValues.CLICKHOUSE; | ||
case "oceanbase": // Oceanbase | ||
return DbSystemValues.OCEANBASE; | ||
case "polardb": // polarDB |
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.
case "polardb": // polarDB | |
case "polardb": // PolarDB |
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.
fixed
return DbSystemValues.OCEANBASE; | ||
case "polardb": // polarDB | ||
return DbSystemValues.POLARDB; | ||
case "lindorm": // lindorm |
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.
case "lindorm": // lindorm | |
case "lindorm": // Lindorm |
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.
fixed
}, | ||
/** | ||
* <a | ||
* href="https://www.alibabacloud.com/help/en/lindorm/user-guide/view-endpoints?spm=a2c63.p38356.help-menu-172543.d_2_0_1.7a1e41feMntzyJ">Driver |
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.
* href="https://www.alibabacloud.com/help/en/lindorm/user-guide/view-endpoints?spm=a2c63.p38356.help-menu-172543.d_2_0_1.7a1e41feMntzyJ">Driver | |
* href="https://www.alibabacloud.com/help/en/lindorm/user-guide/view-endpoints">Driver |
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.
deleted
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.
deleted
did you forget to actually delete the url parameters?
|
||
private static Stream<Arguments> oceanbaseArguments() { | ||
return args( | ||
// https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieving-secrets_jdbc.html |
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.
It it correct url?
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.
fixed
|
||
private static Stream<Arguments> lindormArguments() { | ||
return args( | ||
// https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieving-secrets_jdbc.html |
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.
Same question with above
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.
fixed
Change-Id: I39d2ce579c60d5afa2e792f3296eef5d0b495443
…r' into feature/additonal-jdbc-url-parser Change-Id: I5b6ee06da60fc32dc1edece63948d228c95f710b
...ry/src/main/java/io/opentelemetry/instrumentation/jdbc/internal/JdbcConnectionUrlParser.java
Show resolved
Hide resolved
if (subtype.equals(DbSystemValues.ORACLE)) { | ||
builder.system(DbSystemValues.ORACLE); | ||
} |
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.
initially I though that it is weird to have subtype
and system
set to the same value but DATADIRECT
url handling does the same
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.
Yes, I've referred to DATADIRECT
return GENERIC_URL_LIKE.doParse(clickhouseUrl, builder); | ||
} | ||
}, | ||
/** jdbc:oceanbase://host:port/dbname jdbc:oceanbase:oracle://host:port/dbname */ |
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.
perhaps change the comment to
/**
* Sample urls:
*
* <ul>
* <li>jdbc:oceanbase://host:port/dbname
* <li>jdbc:oceanbase:oracle://host:port/dbname
* </ul>
*/
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.
Optimized
🔧 The result from spotlessApply was committed to the PR branch. |
Change-Id: Ic7a1bdab51668642fb2c3e4b775ce30f4e1a841c
…r' into feature/additonal-jdbc-url-parser Change-Id: I6205bbedb81199c2bded7b78112389ca0b935636
🔧 The result from spotlessApply was committed to the PR branch. |
Thank you for your contribution @pepeshore! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey. |
Resolved #14702