Skip to content

E2E metric limiter #51

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 1 commit into from
Apr 26, 2024
Merged

E2E metric limiter #51

merged 1 commit into from
Apr 26, 2024

Conversation

harrryr
Copy link
Contributor

@harrryr harrryr commented Apr 25, 2024

Issue #, if available:
We want to run an E2E canary to check if the metric limiter is appropriately labeling metrics as AllOtherOperations and AllOtherRemoteOperations when the number of service operation reach a certain threshold

Description of changes:

  • Default metric limiter threshold is 300, update application signals metric limiter threshold to 2
  • Call the /GET and /ERROR API to meet the threshold
  • Call the four test APIs and validate metric if the operation and remote operation value is now AllOtherOperations and AllOtherRemoteOperations respectively
  • K8s.RemoteNamespace and RemoteTarget attribute will become -

Test run with metric threshold 2: https://github.com/aws-observability/aws-application-signals-test-framework/actions/runs/8832988258

Test run with metric threshold 4 (Should fail): https://github.com/aws-observability/aws-application-signals-test-framework/actions/runs/8832746310/job/24250643113

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 e2e-metric-limiter branch from dc4a949 to ab150fe Compare April 25, 2024 13:02
@harrryr harrryr changed the title E2e metric limiter E2E metric limiter Apr 25, 2024
@harrryr harrryr merged commit e9f4e07 into main Apr 26, 2024
@harrryr harrryr deleted the e2e-metric-limiter branch April 26, 2024 19:57
zzhlogin pushed a commit to zzhlogin/aws-application-signals-test-framework that referenced this pull request Jun 6, 2024
zzhlogin pushed a commit to zzhlogin/aws-application-signals-test-framework that referenced this pull request Jun 6, 2024
zzhlogin pushed a commit to zzhlogin/aws-application-signals-test-framework that referenced this pull request Jun 6, 2024
zzhlogin pushed a commit to zzhlogin/aws-application-signals-test-framework that referenced this pull request Jun 6, 2024
georgeboc pushed a commit to georgeboc/aws-application-signals-test-framework that referenced this pull request Jul 8, 2024
…observability#51)

In this commit, we are removing the `set_http_status` logic from
AwsMetricAttributeGenerator. This logic was originally in place for
parity with Java. In Java, the OTEL instrumentation for AWS SDK does not
populate the `http.status_code` attribute for spans, so we had to add
logic to extract status code from the exception embedded within the
events of the span. However, in Python, we have verified that this is
not a problem; `http.status_code` is reliably set and so we do not need
this logic. `set_http_status` logic is no longer needed, so this commit
seeks to clean up the code by removing it and all code depending on it.

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