Skip to content

Commit

Permalink
Adds reporting endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Cole committed Apr 9, 2019
1 parent 5415637 commit c18b0eb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 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,14 @@ message Annotation {
message ListOfSpans {
repeated Span spans = 1;
}

// Use this to report spans onto the gRPC transport. 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 {

// Unary call analogous to the 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 c18b0eb

Please sign in to comment.