trace_service.proto 1.9 KB

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