Skip to content

Conversation

@aludwiko
Copy link
Contributor

@aludwiko aludwiko commented Sep 9, 2025

@github-actions github-actions bot added documentation documentation related java-sdk labels Sep 9, 2025
assertThat(balance2).isEqualTo(110);
});

var steps = telemetryReader.getWorkflowSteps(TransferWorkflow.class, transferId);
Copy link
Contributor Author

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.

Copy link
Member

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.

@aludwiko aludwiko changed the title feat: component evaluator feat: telemetry reader for IT Sep 10, 2025
() -> {
List<String> workflowSteps =
telemetryReader.getWorkflowSteps(TransferWorkflow.class, transferId);
assertThat(workflowSteps).containsOnly("withdraw-step", "deposit-step", "logAndStop");
Copy link
Contributor Author

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.

Copy link
Member

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.

@aludwiko aludwiko marked this pull request as ready for review September 30, 2025 15:14
@aludwiko
Copy link
Contributor Author

Ok, ready for review and decision about the feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation documentation related java-sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants