...

Text file src/github.com/datawire/ambassador/v2/api/envoy/config/trace/v3/xray.proto

Documentation: github.com/datawire/ambassador/v2/api/envoy/config/trace/v3

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

View as plain text