Skip to content

Conversation

pepeshore
Copy link
Contributor

@pepeshore pepeshore commented Sep 25, 2025

Resolved #14702

@pepeshore pepeshore requested a review from a team as a code owner September 25, 2025 08:01
Copy link

linux-foundation-easycla bot commented Sep 25, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@github-actions github-actions bot added the test native This label can be applied to PRs to trigger them to run native tests label Sep 25, 2025
@otelbot-java-instrumentation
Copy link
Contributor

🔧 The result from spotlessApply was committed to the PR branch.

@steverao steverao changed the title feat: OceanBase、PolarDB、Lindorm JDBC URL Parse Support (#14702) Add JDBC URL parsing support for OceanBase, PolarDB and Lindorm Sep 26, 2025
return DbSystemValues.CLICKHOUSE;
case "oceanbase": // Oceanbase
return DbSystemValues.OCEANBASE;
case "polardb": // polarDB
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
case "polardb": // polarDB
case "polardb": // PolarDB

Copy link
Contributor Author

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
case "lindorm": // lindorm
case "lindorm": // Lindorm

Copy link
Contributor Author

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* 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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deleted

Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It it correct url?

Copy link
Contributor Author

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question with above

Copy link
Contributor Author

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
Comment on lines +924 to +926
if (subtype.equals(DbSystemValues.ORACLE)) {
builder.system(DbSystemValues.ORACLE);
}
Copy link
Contributor

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

Copy link
Contributor Author

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 */
Copy link
Contributor

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>
   */

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optimized

@otelbot-java-instrumentation
Copy link
Contributor

🔧 The result from spotlessApply was committed to the PR branch.

pepeshore and others added 3 commits October 9, 2025 17:20
Change-Id: Ic7a1bdab51668642fb2c3e4b775ce30f4e1a841c
…r' into feature/additonal-jdbc-url-parser

Change-Id: I6205bbedb81199c2bded7b78112389ca0b935636
@otelbot-java-instrumentation
Copy link
Contributor

🔧 The result from spotlessApply was committed to the PR branch.

@laurit laurit added this to the v2.21.0 milestone Oct 9, 2025
@trask trask merged commit a8b77e1 into open-telemetry:main Oct 9, 2025
83 checks passed
Copy link
Contributor

otelbot bot commented Oct 9, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test native This label can be applied to PRs to trigger them to run native tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some JDBC Connection String Parse failed

4 participants