Skip to content

Commit d302542

Browse files
committed
Tracing: added OpenTelemetry integration test
The test verifies that span tree structure and status code are valid. Speculative executions are run parallel to the main thread, so some of them can finish only after query result has been returned. Thus, in order to collect span data from entire request, we decided to wait until all speculative executions end. The main thread uses conditional variable `allEnded` to wait for them and lock is used for concurrent mutation of activeSpans.
1 parent 7f2b165 commit d302542

File tree

2 files changed

+889
-0
lines changed

2 files changed

+889
-0
lines changed

driver-opentelemetry/src/main/java/com/datastax/driver/opentelemetry/OpenTelemetryTracingInfo.java

+6
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,12 @@ public void setKeyspace(String keyspace) {
180180
span.setAttribute("db.scylla.keyspace", keyspace);
181181
}
182182

183+
@Override
184+
public void setBoundValues(String boundValues) {
185+
assertStarted();
186+
span.setAttribute("db.scylla.bound_values", boundValues);
187+
}
188+
183189
@Override
184190
public void setPartitionKey(String partitionKey) {
185191
assertStarted();

0 commit comments

Comments
 (0)