AWS X-Ray Tracer Configuration

This documentation is for the Envoy v3 API.

As of Envoy v1.18 the v2 API has been removed and is no longer supported.

If you are upgrading from v2 API config you may wish to view the v2 API documentation:

Configuration for AWS X-Ray tracer

config.trace.v3.XRayConfig

[config.trace.v3.XRayConfig proto]

This extension may be referenced by the qualified name envoy.tracers.xray

Note

This extension is intended to be robust against untrusted downstream traffic. It assumes that the upstream is trusted.

Tip

This extension extends and can be used with the following extension category:

{
  "daemon_endpoint": "{...}",
  "segment_name": "...",
  "sampling_rule_manifest": "{...}",
  "segment_fields": "{...}"
}
daemon_endpoint

(config.core.v3.SocketAddress) 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.

segment_name

(string, REQUIRED) The name of the X-Ray segment.

sampling_rule_manifest

(config.core.v3.DataSource) The location of a local custom sampling rules JSON file. For an example of the sampling rules see: X-Ray SDK documentation

segment_fields

(config.trace.v3.XRayConfig.SegmentFields) Optional custom fields to be added to each trace segment. see: X-Ray Segment Document documentation

config.trace.v3.XRayConfig.SegmentFields

[config.trace.v3.XRayConfig.SegmentFields proto]

{
  "origin": "...",
  "aws": "{...}"
}
origin

(string) The type of AWS resource, e.g. “AWS::AppMesh::Proxy”.

aws

(Struct) AWS resource metadata dictionary. See: X-Ray Segment Document documentation