Skip to content

Commit

Permalink
Tracing: added OpenTelemetry integration test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wprzytula committed Aug 31, 2022
1 parent 7f2b165 commit d302542
Show file tree
Hide file tree
Showing 2 changed files with 889 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@ public void setKeyspace(String keyspace) {
span.setAttribute("db.scylla.keyspace", keyspace);
}

@Override
public void setBoundValues(String boundValues) {
assertStarted();
span.setAttribute("db.scylla.bound_values", boundValues);
}

@Override
public void setPartitionKey(String partitionKey) {
assertStarted();
Expand Down
Loading

0 comments on commit d302542

Please sign in to comment.