Is your feature request related to a problem? Please describe.
Currently, OTEL supports tracing for ClickHouse Java Client v1 via the ClickhouseClient class, however, ClickHouse Java Client v2 introduces Client class, which are not currently instrumented by the OTEL Java Agent.
As v2 is becoming the standard approach for interacting with ClickHouse, it would be valuable to support instrumentation for its new API structure.
Describe the solution you'd like
OTEL Agent should trace ClickHouse via Client class or v2 interface.
Describe alternatives you've considered
No response
Additional context
Here is an example
public Client clickhouseClient() {
return new Client.Builder()
.addEndpoint(Protocol.HTTP, host, port, false)
.setUsername("default")
.setPassword("")
.setDefaultDatabase(database)
.build();
}
QueryResponse queryResponse = clickhouseClient.query("SELECT * FROM logs_v2 LIMIT 10").get();
Map<String, Object> result = new HashMap<>();
result.put("success", true);
result.put("message", "Logs retrieved successfully (10 records)");
result.put("data", queryResponse.toString());
result.put("rowCount", queryResponse.getReadRows());
return CompletableFuture.completedFuture(result);
ClickHouse Java Client v1

ClickHouse Java Client v2

Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.
Is your feature request related to a problem? Please describe.
Currently, OTEL supports tracing for ClickHouse Java Client v1 via the
ClickhouseClientclass, however, ClickHouse Java Client v2 introducesClientclass, which are not currently instrumented by the OTEL Java Agent.As v2 is becoming the standard approach for interacting with ClickHouse, it would be valuable to support instrumentation for its new API structure.
Describe the solution you'd like
OTEL Agent should trace ClickHouse via
Clientclass or v2 interface.Describe alternatives you've considered
No response
Additional context
Here is an example
ClickHouse Java Client v1

ClickHouse Java Client v2

Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding
+1orme too, to help us triage it. Learn more here.