From cf718aab1f7e65cfb617e43cef43de083853e10c Mon Sep 17 00:00:00 2001 From: "(Eliseo) Nathaniel Ruiz Nowell" Date: Tue, 12 Oct 2021 17:23:20 -0700 Subject: [PATCH] Path of AWS Propagator tests match src structure (#733) --- .../opentelemetry/propagators/aws/aws_xray_propagator.py | 9 +++++---- .../test_benchmark_aws_xray_propagator.py | 0 .../{trace/propagation => }/test_aws_xray_propagator.py | 0 .../tests/trace/__init__.py | 0 .../tests/trace/propagation/__init__.py | 0 5 files changed, 5 insertions(+), 4 deletions(-) rename propagator/opentelemetry-propagator-aws-xray/tests/performance/benchmarks/{trace/propagation => }/test_benchmark_aws_xray_propagator.py (100%) rename propagator/opentelemetry-propagator-aws-xray/tests/{trace/propagation => }/test_aws_xray_propagator.py (100%) delete mode 100644 propagator/opentelemetry-propagator-aws-xray/tests/trace/__init__.py delete mode 100644 propagator/opentelemetry-propagator-aws-xray/tests/trace/propagation/__init__.py diff --git a/propagator/opentelemetry-propagator-aws-xray/src/opentelemetry/propagators/aws/aws_xray_propagator.py b/propagator/opentelemetry-propagator-aws-xray/src/opentelemetry/propagators/aws/aws_xray_propagator.py index 3b1b81068..0a3dd8ee0 100644 --- a/propagator/opentelemetry-propagator-aws-xray/src/opentelemetry/propagators/aws/aws_xray_propagator.py +++ b/propagator/opentelemetry-propagator-aws-xray/src/opentelemetry/propagators/aws/aws_xray_propagator.py @@ -17,9 +17,9 @@ AWS X-Ray Propagator -------------------- The **AWS X-Ray Propagator** provides a propagator that when used, adds a `trace -header`_ to outgoing traces that is compatible with the AWS X-Ray backend service. -This allows the trace context to be propagated when a trace spans multiple AWS -services. +header`_ to outgoing traces that is compatible with the AWS X-Ray backend +service. This allows the trace context to be propagated when a trace spans +multiple AWS services. The same propagator setup is used to extract a context sent by external systems so that child span have the correct parent context. @@ -103,7 +103,8 @@ class AwsParseTraceHeaderError(Exception): class AwsXRayPropagator(TextMapPropagator): """Propagator for the AWS X-Ray Trace Header propagation protocol. - See: https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-tracingheader + See: + https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-tracingheader """ # AWS diff --git a/propagator/opentelemetry-propagator-aws-xray/tests/performance/benchmarks/trace/propagation/test_benchmark_aws_xray_propagator.py b/propagator/opentelemetry-propagator-aws-xray/tests/performance/benchmarks/test_benchmark_aws_xray_propagator.py similarity index 100% rename from propagator/opentelemetry-propagator-aws-xray/tests/performance/benchmarks/trace/propagation/test_benchmark_aws_xray_propagator.py rename to propagator/opentelemetry-propagator-aws-xray/tests/performance/benchmarks/test_benchmark_aws_xray_propagator.py diff --git a/propagator/opentelemetry-propagator-aws-xray/tests/trace/propagation/test_aws_xray_propagator.py b/propagator/opentelemetry-propagator-aws-xray/tests/test_aws_xray_propagator.py similarity index 100% rename from propagator/opentelemetry-propagator-aws-xray/tests/trace/propagation/test_aws_xray_propagator.py rename to propagator/opentelemetry-propagator-aws-xray/tests/test_aws_xray_propagator.py diff --git a/propagator/opentelemetry-propagator-aws-xray/tests/trace/__init__.py b/propagator/opentelemetry-propagator-aws-xray/tests/trace/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/propagator/opentelemetry-propagator-aws-xray/tests/trace/propagation/__init__.py b/propagator/opentelemetry-propagator-aws-xray/tests/trace/propagation/__init__.py deleted file mode 100644 index e69de29bb..000000000