-
Notifications
You must be signed in to change notification settings - Fork 4.7k
/
trace_service.proto
56 lines (43 loc) · 1.91 KB
/
trace_service.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
syntax = "proto3";
package envoy.service.trace.v3;
import "envoy/config/core/v3/base.proto";
import "opencensus/proto/trace/v1/trace.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option java_package = "io.envoyproxy.envoy.service.trace.v3";
option java_outer_classname = "TraceServiceProto";
option java_multiple_files = true;
option go_package = "github.com/envoyproxy/go-control-plane/envoy/service/trace/v3;tracev3";
option java_generic_services = true;
option (udpa.annotations.file_status).package_version_status = ACTIVE;
// [#protodoc-title: Trace service]
// Service for streaming traces to server that consumes the trace data. It
// uses OpenCensus data model as a standard to represent trace information.
service TraceService {
// Envoy will connect and send StreamTracesMessage messages forever. It does
// not expect any response to be sent as nothing would be done in the case
// of failure.
rpc StreamTraces(stream StreamTracesMessage) returns (StreamTracesResponse) {
}
}
message StreamTracesResponse {
option (udpa.annotations.versioning).previous_message_type =
"envoy.service.trace.v2.StreamTracesResponse";
}
message StreamTracesMessage {
option (udpa.annotations.versioning).previous_message_type =
"envoy.service.trace.v2.StreamTracesMessage";
message Identifier {
option (udpa.annotations.versioning).previous_message_type =
"envoy.service.trace.v2.StreamTracesMessage.Identifier";
// The node sending the access log messages over the stream.
config.core.v3.Node node = 1 [(validate.rules).message = {required: true}];
}
// Identifier data effectively is a structured metadata.
// As a performance optimization this will only be sent in the first message
// on the stream.
Identifier identifier = 1;
// A list of Span entries
repeated opencensus.proto.trace.v1.Span spans = 2;
}