-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Refactor fault/error logic #26681
Refactor fault/error logic #26681
Conversation
8e66ca7
to
9a32258
Compare
@@ -118,41 +118,34 @@ func makeCause(span ptrace.Span, attributes map[string]pcommon.Value, resource p | |||
} | |||
} | |||
|
|||
// The logic to record error and fault should be kept in sync with the ADOT pulse repo whenever possible except for the throttle | |||
// https://github.com/aws-observability/aws-apm-java-instrumentation/blob/main/awsagentprovider/src/main/java/software/amazon/opentelemetry/javaagent/providers/AwsSpanMetricsProcessor.java |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: format seems off
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code = val.Int() | ||
} | ||
|
||
isThrottle = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have a default false value for isError and isFault as well? This can simplify the switch block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
801e655
to
9704ad3
Compare
**Description:** This PR just refactors the logic in the awsxrayexporter as it was hard to follow the logical flow of the code. No functional changes.
Description:
This PR just refactors the logic in the awsxrayexporter as it was hard to follow the logical flow of the code. No functional changes.
Link to tracking Issue:
Testing:
Ran unit tests
Ran integration test by creating eks cluster and activating sample app.
Documentation: