Skip to content

Support Python E2E test remote call from main build #47

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 35 commits into from
Apr 23, 2024

Conversation

zzhlogin
Copy link
Contributor

@zzhlogin zzhlogin commented Apr 23, 2024

Issue #, if available:

Description of changes:
Support Python E2E test remote call from main build in aws-otel-python-instrumentation

Test workflow:
main build: https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/8804702307
python EC2 canary: https://github.com/aws-observability/aws-application-signals-test-framework/actions/runs/8805912573
python EKS canary: https://github.com/aws-observability/aws-application-signals-test-framework/actions/runs/8806000543

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

@harrryr
Copy link
Contributor

harrryr commented Apr 23, 2024

Could we also test if the python-canary workflow runs properly with this change?

@zzhlogin
Copy link
Contributor Author

Could we also test if the python-canary workflow runs properly with this change?

Sure, tested and updated in the PR overview.

@zzhlogin zzhlogin merged commit 599f93d into main Apr 23, 2024
@zzhlogin zzhlogin deleted the python_e2e_migration branch June 6, 2024 18:18
zzhlogin added a commit to zzhlogin/aws-application-signals-test-framework that referenced this pull request Jun 6, 2024
…y#47)

* Support Python E2E test remote call from main build
zzhlogin added a commit to zzhlogin/aws-application-signals-test-framework that referenced this pull request Jun 6, 2024
…y#47)

* Support Python E2E test remote call from main build
zzhlogin added a commit to zzhlogin/aws-application-signals-test-framework that referenced this pull request Jun 6, 2024
…y#47)

* Support Python E2E test remote call from main build
zzhlogin added a commit to zzhlogin/aws-application-signals-test-framework that referenced this pull request Jun 6, 2024
…y#47)

* Support Python E2E test remote call from main build
georgeboc pushed a commit to georgeboc/aws-application-signals-test-framework that referenced this pull request Jul 8, 2024
…g Logic (aws-observability#47)

*Issue #, if available:*
Second PR of 3 parts for adding the X-Ray remote sampling support for
OTel Python SDK.
[See Part
1](aws-observability/aws-otel-python-instrumentation#33)

*Description of changes:*

- Sampling `RuleCache`
- Caches a list of `Rule`s, ordered by rule priority then rule name.
Each rule corresponds to the Sampling Rule from GetSamplingRules. Each
call to GetSamplingRules will only update the `Rule`s that have changed
properties, to preserve the state of unchanged rules. This means when
Reservoir and Statistics are implemented in the `Rule`s, they will
persist for unchanged rules.
- The RuleCache will determine which Rule a set of
{ResourceAttributes,SpanAttributes} matches with that has highest
priority.
- `Rule`
- Corresponds to a `SamplingRule` and has logic to match with provided
set of ResourceAttribute and SpanAttribute using the `Matcher` class.
  - Will determine the final sampling decision
- `Matcher` class with methods to perform:
  - Convert X-Ray sampling rule options to regex patterns
  - Wild card and attribute matching
- Initial class for `FallbackSampler`

Testing:

Unit tests

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