tap.proto 2.0 KB

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