tap.proto 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. syntax = "proto3";
  2. package envoy.service.tap.v3;
  3. import "envoy/config/core/v3/base.proto";
  4. import "envoy/data/tap/v3/wrapper.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.tap.v3";
  9. option java_outer_classname = "TapProto";
  10. option java_multiple_files = true;
  11. option go_package = "github.com/envoyproxy/go-control-plane/envoy/service/tap/v3;tapv3";
  12. option java_generic_services = true;
  13. option (udpa.annotations.file_status).package_version_status = ACTIVE;
  14. // [#protodoc-title: Tap Sink Service]
  15. // [#not-implemented-hide:] A tap service to receive incoming taps. Envoy will call
  16. // StreamTaps to deliver captured taps to the server
  17. service TapSinkService {
  18. // Envoy will connect and send StreamTapsRequest messages forever. It does not expect any
  19. // response to be sent as nothing would be done in the case of failure. The server should
  20. // disconnect if it expects Envoy to reconnect.
  21. rpc StreamTaps(stream StreamTapsRequest) returns (StreamTapsResponse) {
  22. }
  23. }
  24. // [#not-implemented-hide:] Stream message for the Tap API. Envoy will open a stream to the server
  25. // and stream taps without ever expecting a response.
  26. message StreamTapsRequest {
  27. option (udpa.annotations.versioning).previous_message_type =
  28. "envoy.service.tap.v2alpha.StreamTapsRequest";
  29. message Identifier {
  30. option (udpa.annotations.versioning).previous_message_type =
  31. "envoy.service.tap.v2alpha.StreamTapsRequest.Identifier";
  32. // The node sending taps over the stream.
  33. config.core.v3.Node node = 1 [(validate.rules).message = {required: true}];
  34. // The opaque identifier that was set in the :ref:`output config
  35. // <envoy_v3_api_field_config.tap.v3.StreamingGrpcSink.tap_id>`.
  36. string tap_id = 2;
  37. }
  38. // Identifier data effectively is a structured metadata. As a performance optimization this will
  39. // only be sent in the first message on the stream.
  40. Identifier identifier = 1;
  41. // The trace id. this can be used to merge together a streaming trace. Note that the trace_id
  42. // is not guaranteed to be spatially or temporally unique.
  43. uint64 trace_id = 2;
  44. // The trace data.
  45. data.tap.v3.TraceWrapper trace = 3;
  46. }
  47. // [#not-implemented-hide:]
  48. message StreamTapsResponse {
  49. option (udpa.annotations.versioning).previous_message_type =
  50. "envoy.service.tap.v2alpha.StreamTapsResponse";
  51. }