Add JDBC URL parsing support for OceanBase, PolarDB and Lindorm#14790
Add JDBC URL parsing support for OceanBase, PolarDB and Lindorm#14790trask merged 13 commits intoopen-telemetry:mainfrom
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.
| case "polardb": // polarDB | |
| case "polardb": // PolarDB |
| return DbSystemValues.OCEANBASE; | ||
| case "polardb": // polarDB | ||
| return DbSystemValues.POLARDB; | ||
| case "lindorm": // lindorm |
There was a problem hiding this comment.
| case "lindorm": // lindorm | |
| case "lindorm": // Lindorm |
| }, | ||
| /** | ||
| * <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.
| * 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.
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 |
|
|
||
| private static Stream<Arguments> lindormArguments() { | ||
| return args( | ||
| // https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieving-secrets_jdbc.html |
Change-Id: I39d2ce579c60d5afa2e792f3296eef5d0b495443
…r' into feature/additonal-jdbc-url-parser Change-Id: I5b6ee06da60fc32dc1edece63948d228c95f710b
| if (subtype.equals(DbSystemValues.ORACLE)) { | ||
| builder.system(DbSystemValues.ORACLE); | ||
| } |
There was a problem hiding this comment.
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.
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.
perhaps change the comment to
/**
* Sample urls:
*
* <ul>
* <li>jdbc:oceanbase://host:port/dbname
* <li>jdbc:oceanbase:oracle://host:port/dbname
* </ul>
*/
|
🔧 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