Skip to content

Commit 3fcba47

Browse files
traskCopilot
andauthored
Update instrumentation/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/internal/parser/JtdsUrlParser.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent db7842a commit 3fcba47

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • instrumentation/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/internal/parser

instrumentation/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/internal/parser/JtdsUrlParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ public void parse(String jdbcUrl, ParseContext ctx) {
5050
ctx.subtype("sqlserver");
5151

5252
// Use ParseContext.parseUrl() to handle URL structure parsing (user, host, port, path)
53-
// Note: parseUrl() sets URL path to ctx.name, but for jTDS the path is the database
53+
// Note: for jTDS, parseUrl() maps the URL path to the database name
5454
ctx.parseUrl(jdbcUrl);
5555

5656
// Handle jTDS/SQL Server-specific parameters
57-
// For jTDS, URL path (already in ctx.name from parseUrl) represents database name
57+
// For jTDS, the URL path parsed above represents the database name
5858
// Extract instance and database parameters
5959
String[] split = jdbcUrl.split(";", 2);
6060
String instanceName = null;

0 commit comments

Comments
 (0)