Skip to content

Commit

Permalink
Adds reporting endpoint (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
adriancole authored Apr 10, 2019
1 parent 5415637 commit 05aca11
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions zipkin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

syntax = "proto3";

import "google/protobuf/empty.proto";

package zipkin.proto3;

// In Java, the closest model type to this proto is in the "zipkin2" package
Expand Down Expand Up @@ -212,3 +214,17 @@ message Annotation {
message ListOfSpans {
repeated Span spans = 1;
}


// SpanService allows reporting spans using gRPC, as opposed to HTTP POST
// reporting. Implementations are asynchronous and may drop spans for reasons
// of sampling or storage availability. While this is primarily used to store
// spans, other operations may take place such as aggregation of service
// dependencies or data cleaning.
service SpanService {

// Report the provided spans to the collector. Analogous to the HTTP POST
// /api/v2/spans endpoint. Spans are not required to be complete or belonging
// to the same trace.
rpc Report(zipkin.proto3.ListOfSpans) returns (google.protobuf.Empty) {}
}

0 comments on commit 05aca11

Please sign in to comment.