Skip to content

Commit 15e2d53

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 2c216cd commit 15e2d53

File tree

2 files changed

+872
-1
lines changed

2 files changed

+872
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public void setHasMorePages(boolean hasMorePages) {
162162
@Override
163163
public void setRowsCount(int rowsCount) {
164164
assertStarted();
165-
span.setAttribute("db.scylla.rows_count", rowsCount);
165+
span.setAttribute("db.scylla.rows_count", Integer.toString(rowsCount));
166166
}
167167

168168
@Override

0 commit comments

Comments
 (0)