From c18b0ebb7555769b2fb3910136edd62a0934d559 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Tue, 9 Apr 2019 14:23:33 +0900 Subject: [PATCH] Adds reporting endpoint Fixes #57 See https://github.com/openzipkin/zipkin/pull/2328 --- zipkin.proto | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/zipkin.proto b/zipkin.proto index a77dd69..b26bf48 100644 --- a/zipkin.proto +++ b/zipkin.proto @@ -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 @@ -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) {} +}