X-Ray Localized Sampling (2/2) (#9167)
Signed-off-by: Marco Magdy <mmagdy@gmail.com> Mirrored from https://github.com/envoyproxy/envoy @ 1a6b970f024e45746af3dc4977eec5239c64e3d3master-ci-test
parent
08c6355170
commit
e2410300fb
7 changed files with 78 additions and 36 deletions
@ -0,0 +1,9 @@ |
|||||||
|
# DO NOT EDIT. This file is generated by tools/proto_sync.py. |
||||||
|
|
||||||
|
load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package") |
||||||
|
|
||||||
|
licenses(["notice"]) # Apache 2 |
||||||
|
|
||||||
|
api_proto_package( |
||||||
|
deps = ["//envoy/api/v2/core:pkg"], |
||||||
|
) |
@ -0,0 +1,30 @@ |
|||||||
|
syntax = "proto3"; |
||||||
|
|
||||||
|
package envoy.config.trace.v2alpha; |
||||||
|
|
||||||
|
option java_package = "io.envoyproxy.envoy.config.trace.v2alpha"; |
||||||
|
option java_outer_classname = "XrayProto"; |
||||||
|
option java_multiple_files = true; |
||||||
|
|
||||||
|
import "envoy/api/v2/core/address.proto"; |
||||||
|
import "envoy/api/v2/core/base.proto"; |
||||||
|
|
||||||
|
import "validate/validate.proto"; |
||||||
|
|
||||||
|
// [#protodoc-title: AWS X-Ray Tracer Configuration] |
||||||
|
// Configuration for AWS X-Ray tracer |
||||||
|
|
||||||
|
message XRayConfig { |
||||||
|
// The UDP endpoint of the X-Ray Daemon where the spans will be sent. |
||||||
|
// If this value is not set, the default value of 127.0.0.1:2000 will be used. |
||||||
|
api.v2.core.SocketAddress daemon_endpoint = 1; |
||||||
|
|
||||||
|
// The name of the X-Ray segment. By default this will be set to the cluster name. |
||||||
|
string segment_name = 2; |
||||||
|
|
||||||
|
// The location of a local custom sampling rules JSON file. |
||||||
|
// For an example of the sampling rules see: |
||||||
|
// `X-Ray SDK documentation |
||||||
|
// <https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-go-configuration.html#xray-sdk-go-configuration-sampling>`_ |
||||||
|
api.v2.core.DataSource sampling_rule_manifest = 3; |
||||||
|
} |
@ -0,0 +1,35 @@ |
|||||||
|
syntax = "proto3"; |
||||||
|
|
||||||
|
package envoy.config.trace.v3alpha; |
||||||
|
|
||||||
|
option java_package = "io.envoyproxy.envoy.config.trace.v3alpha"; |
||||||
|
option java_outer_classname = "XrayProto"; |
||||||
|
option java_multiple_files = true; |
||||||
|
|
||||||
|
import "envoy/api/v3alpha/core/address.proto"; |
||||||
|
import "envoy/api/v3alpha/core/base.proto"; |
||||||
|
|
||||||
|
import "udpa/annotations/versioning.proto"; |
||||||
|
|
||||||
|
import "validate/validate.proto"; |
||||||
|
|
||||||
|
// [#protodoc-title: AWS X-Ray Tracer Configuration] |
||||||
|
// Configuration for AWS X-Ray tracer |
||||||
|
|
||||||
|
message XRayConfig { |
||||||
|
option (udpa.annotations.versioning).previous_message_type = |
||||||
|
"envoy.config.trace.v2alpha.XRayConfig"; |
||||||
|
|
||||||
|
// The UDP endpoint of the X-Ray Daemon where the spans will be sent. |
||||||
|
// If this value is not set, the default value of 127.0.0.1:2000 will be used. |
||||||
|
api.v3alpha.core.SocketAddress daemon_endpoint = 1; |
||||||
|
|
||||||
|
// The name of the X-Ray segment. By default this will be set to the cluster name. |
||||||
|
string segment_name = 2; |
||||||
|
|
||||||
|
// The location of a local custom sampling rules JSON file. |
||||||
|
// For an example of the sampling rules see: |
||||||
|
// `X-Ray SDK documentation |
||||||
|
// <https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-go-configuration.html#xray-sdk-go-configuration-sampling>`_ |
||||||
|
api.v3alpha.core.DataSource sampling_rule_manifest = 3; |
||||||
|
} |
Loading…
Reference in new issue