Skip to content

Add EC2 Platform Test to Python #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 15, 2024
Merged

Conversation

harrryr
Copy link
Contributor

@harrryr harrryr commented May 13, 2024

Issue #, if available:
The Java OTEL has E2E testing for telemetry generated through a sample app managed by auto scaling groups. Do the same for Python

Test run: https://github.com/aws-observability/aws-application-signals-test-framework/actions/runs/9065863403
Test run: https://github.com/aws-observability/aws-application-signals-test-framework/actions/runs/9088391496/job/24977861172
Test run: https://github.com/aws-observability/aws-application-signals-test-framework/actions/runs/9088751078/job/24978832240
Note: Test run was ran with the branch add-ec2-platform-for-python-ga. Once successful test was ran, switched it back to ga-python. Current test shows as failing but once merged back to ga-python it should work again

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@harrryr harrryr force-pushed the add-ec2-platform-for-python-ga branch from 22a4094 to 840d8a8 Compare May 13, 2024 16:21
@harrryr harrryr force-pushed the add-ec2-platform-for-python-ga branch from 9da9fe9 to 6c1262a Compare May 14, 2024 18:15
@harrryr harrryr force-pushed the add-ec2-platform-for-python-ga branch 2 times, most recently from 1c40b0e to aeb56e8 Compare May 15, 2024 01:14
@harrryr harrryr force-pushed the add-ec2-platform-for-python-ga branch from ef6190d to b1ebea6 Compare May 15, 2024 01:56
@harrryr harrryr merged commit cc4fb93 into ga-python May 15, 2024
@harrryr harrryr deleted the add-ec2-platform-for-python-ga branch May 15, 2024 17:16
@harrryr harrryr restored the add-ec2-platform-for-python-ga branch May 17, 2024 19:21
georgeboc pushed a commit to georgeboc/aws-application-signals-test-framework that referenced this pull request Jul 8, 2024
aws-observability#64)

*Issue #, if available:*
Use X-Ray default sampler as default sampler if user has not specified
one
Requires
aws-observability/aws-otel-python-instrumentation#55
to be merged first before this PR can work.

*Description of changes:*
Use X-Ray default sampler as default sampler if user has not specified
one

*Testing:*
Assume
aws-observability/aws-otel-python-instrumentation#55
is merged

1. Enabled span_metrics_processor and added debug statement to print out
Sampled status of a span in `on_start()`
```
# aws_span_metrics_processor.py
if span.get_span_context().trace_flags.sampled:
            print("sampled")
```
2. Replaced resource detectors and manually set resource with
service.name=test-service-name and build ADOT SDK
3. Setup OTel collector with XRay proxy for sampling and AWS credentials
4. In AWS account, create sampling rule to match
service_name=test-service-name
5. Setup sample app in
`sample-applications/simple-client-server/server_automatic_s3client.py`
6. Update `sample-applications/simple-client-server/client.py` to call
server/sample-app a variable number of times to verify sampling rule is
applied
7. Repeat 6 after changing sampling rule rate/reservoir


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants