xray.proto 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. syntax = "proto3";
  2. package envoy.config.trace.v3;
  3. import "envoy/config/core/v3/address.proto";
  4. import "envoy/config/core/v3/base.proto";
  5. import "google/protobuf/struct.proto";
  6. import "udpa/annotations/migrate.proto";
  7. import "udpa/annotations/status.proto";
  8. import "udpa/annotations/versioning.proto";
  9. import "validate/validate.proto";
  10. option java_package = "io.envoyproxy.envoy.config.trace.v3";
  11. option java_outer_classname = "XrayProto";
  12. option java_multiple_files = true;
  13. option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/trace/v3;tracev3";
  14. option (udpa.annotations.file_migrate).move_to_package = "envoy.extensions.tracers.xray.v4alpha";
  15. option (udpa.annotations.file_status).package_version_status = ACTIVE;
  16. // [#protodoc-title: AWS X-Ray Tracer Configuration]
  17. // Configuration for AWS X-Ray tracer
  18. // [#extension: envoy.tracers.xray]
  19. message XRayConfig {
  20. option (udpa.annotations.versioning).previous_message_type =
  21. "envoy.config.trace.v2alpha.XRayConfig";
  22. message SegmentFields {
  23. // The type of AWS resource, e.g. "AWS::AppMesh::Proxy".
  24. string origin = 1;
  25. // AWS resource metadata dictionary.
  26. // See: `X-Ray Segment Document documentation <https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html#api-segmentdocuments-aws>`__
  27. google.protobuf.Struct aws = 2;
  28. }
  29. // The UDP endpoint of the X-Ray Daemon where the spans will be sent.
  30. // If this value is not set, the default value of 127.0.0.1:2000 will be used.
  31. core.v3.SocketAddress daemon_endpoint = 1;
  32. // The name of the X-Ray segment.
  33. string segment_name = 2 [(validate.rules).string = {min_len: 1}];
  34. // The location of a local custom sampling rules JSON file.
  35. // For an example of the sampling rules see:
  36. // `X-Ray SDK documentation
  37. // <https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-go-configuration.html#xray-sdk-go-configuration-sampling>`_
  38. core.v3.DataSource sampling_rule_manifest = 3;
  39. // Optional custom fields to be added to each trace segment.
  40. // see: `X-Ray Segment Document documentation
  41. // <https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html>`__
  42. SegmentFields segment_fields = 4;
  43. }