zipkin.proto 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. syntax = "proto3";
  2. package envoy.config.trace.v2;
  3. import "google/protobuf/wrappers.proto";
  4. import "envoy/annotations/deprecation.proto";
  5. import "udpa/annotations/status.proto";
  6. import "validate/validate.proto";
  7. option java_package = "io.envoyproxy.envoy.config.trace.v2";
  8. option java_outer_classname = "ZipkinProto";
  9. option java_multiple_files = true;
  10. option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/trace/v2;tracev2";
  11. option (udpa.annotations.file_status).package_version_status = FROZEN;
  12. // [#protodoc-title: Zipkin tracer]
  13. // Configuration for the Zipkin tracer.
  14. // [#extension: envoy.tracers.zipkin]
  15. // [#next-free-field: 6]
  16. message ZipkinConfig {
  17. // Available Zipkin collector endpoint versions.
  18. enum CollectorEndpointVersion {
  19. // Zipkin API v1, JSON over HTTP.
  20. // [#comment: The default implementation of Zipkin client before this field is added was only v1
  21. // and the way user configure this was by not explicitly specifying the version. Consequently,
  22. // before this is added, the corresponding Zipkin collector expected to receive v1 payload.
  23. // Hence the motivation of adding HTTP_JSON_V1 as the default is to avoid a breaking change when
  24. // user upgrading Envoy with this change. Furthermore, we also immediately deprecate this field,
  25. // since in Zipkin realm this v1 version is considered to be not preferable anymore.]
  26. HTTP_JSON_V1 = 0 [deprecated = true, (envoy.annotations.disallowed_by_default_enum) = true];
  27. // Zipkin API v2, JSON over HTTP.
  28. HTTP_JSON = 1;
  29. // Zipkin API v2, protobuf over HTTP.
  30. HTTP_PROTO = 2;
  31. // [#not-implemented-hide:]
  32. GRPC = 3;
  33. }
  34. // The cluster manager cluster that hosts the Zipkin collectors. Note that the
  35. // Zipkin cluster must be defined in the :ref:`Bootstrap static cluster
  36. // resources <envoy_api_field_config.bootstrap.v2.Bootstrap.StaticResources.clusters>`.
  37. string collector_cluster = 1 [(validate.rules).string = {min_bytes: 1}];
  38. // The API endpoint of the Zipkin service where the spans will be sent. When
  39. // using a standard Zipkin installation, the API endpoint is typically
  40. // /api/v1/spans, which is the default value.
  41. string collector_endpoint = 2 [(validate.rules).string = {min_bytes: 1}];
  42. // Determines whether a 128bit trace id will be used when creating a new
  43. // trace instance. The default value is false, which will result in a 64 bit trace id being used.
  44. bool trace_id_128bit = 3;
  45. // Determines whether client and server spans will share the same span context.
  46. // The default value is true.
  47. google.protobuf.BoolValue shared_span_context = 4;
  48. // Determines the selected collector endpoint version. By default, the ``HTTP_JSON_V1`` will be
  49. // used.
  50. CollectorEndpointVersion collector_endpoint_version = 5;
  51. }