Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tracing-java integration #603

Draft
wants to merge 18 commits into
base: palantir-cassandra-2.2.18
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .java-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.8
14 changes: 12 additions & 2 deletions interface/cassandra.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,14 @@ struct ColumnSlice {
2: optional binary finish
}

struct Tracing {
1: optional string trace_id,
2: optional string parent_span_id,
3: optional string span_id,
4: optional bool is_sampled,
5: optional string originating_span_id
}

/**
* Used to perform multiple slices on a single row key in one rpc operation
* @param key. The row key to be multi sliced
Expand Down Expand Up @@ -752,7 +760,8 @@ service Cassandra {
3:list<Column> expected,
4:list<Column> updates,
5:required ConsistencyLevel serial_consistency_level=ConsistencyLevel.SERIAL,
6:required ConsistencyLevel commit_consistency_level=ConsistencyLevel.QUORUM)
6:required ConsistencyLevel commit_consistency_level=ConsistencyLevel.QUORUM,
7:optional Tracing tracing)
throws (1:InvalidRequestException ire, 2:UnavailableException ue, 3:TimedOutException te),

/**
Expand All @@ -770,7 +779,8 @@ service Cassandra {
2:required string column_family,
3:list<Column> updates,
4:required ConsistencyLevel serial_consistency_level=ConsistencyLevel.SERIAL,
5:required ConsistencyLevel commit_consistency_level=ConsistencyLevel.QUORUM)
5:required ConsistencyLevel commit_consistency_level=ConsistencyLevel.QUORUM,
6:optional Tracing tracing)
throws (1:InvalidRequestException ire, 2:UnavailableException ue, 3:TimedOutException te),

/**
Expand Down
286 changes: 258 additions & 28 deletions interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java

Large diffs are not rendered by default.

Loading