-
Notifications
You must be signed in to change notification settings - Fork 8
feat: telemetry reader for IT #965
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
base: main
Are you sure you want to change the base?
Conversation
assertThat(balance2).isEqualTo(110); | ||
}); | ||
|
||
var steps = telemetryReader.getWorkflowSteps(TransferWorkflow.class, transferId); |
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.
Different approach, instead of using debugId
, I can filter based on the component and id. We still have to send the request with a debug header, but we can hide that fact in our internals.
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.
Good. Can also use the always debug sampler.
() -> { | ||
List<String> workflowSteps = | ||
telemetryReader.getWorkflowSteps(TransferWorkflow.class, transferId); | ||
assertThat(workflowSteps).containsOnly("withdraw-step", "deposit-step", "logAndStop"); |
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.
@pvlugter unfortunately all tracing assertions should be wrapped with Awaitility. Sometimes spans arrive later than the observable outcome, and the assertion fails.
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.
Yeah, it's often going to need to wait. We could also build in some await expects with timeouts. Like the way that akka testkits work, with expecting messages or stream elements.
requires: https://github.com/lightbend/akka-runtime/pull/4250/files