Skip to content

TraceValidator #32

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

Conversation

bhautikpip
Copy link
Contributor

  1. Added trace validation logic
  2. Added http and aws pre stored json file
  3. tested with spring boot sample app

@bhautikpip bhautikpip requested a review from wyTrivail October 16, 2020 23:05
Copy link
Contributor

@wyTrivail wyTrivail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just some small comments, thanks!

@bhautikpip bhautikpip requested a review from wyTrivail October 19, 2020 22:22
@bhautikpip bhautikpip requested a review from wyTrivail October 20, 2020 01:28
retryable.execute();
return;
} catch (Exception ex) {
log.error("exception during retry, you may ignore it", ex);
log.info("retrying after 10 seconds");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i remember the interval is a parameter, not a fixed 10 seconds

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure will add param here.

log.error("exception during retry, you may ignore it", ex);
log.info("retrying after 10 seconds");

if (retryCount == 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we move this out of the loop? since when the retries exhausted, it exit the loop

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the reason I kept that inside is because we can print the actual exception after retry is exhausted (why retry failed?).

@bhautikpip bhautikpip linked an issue Oct 21, 2020 that may be closed by this pull request
@wyTrivail wyTrivail merged commit 8412a90 into aws-observability:terraform Oct 22, 2020
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.

[OTel-Test-Framework] Add Trace validator to validate trace data
2 participants