Skip to content
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

Send correlation ID with error messages if available #12

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

penguineer
Copy link
Owner

This pull requests fixes that the Correlation ID would not be sent with error messages.

The send logic has been refactored into a separate method, which is now called by default and error responses.

@penguineer penguineer added the bug Something isn't working label Nov 6, 2024
@penguineer penguineer self-assigned this Nov 6, 2024

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no suggestions.

Comments skipped due to low confidence (1)

src/main/java/com/penguineering/hareairis/rmq/ChatRequestHandler.java:115

  • The new send method should be covered by tests to ensure it handles the correlation ID and message properties correctly.
private void send(String json, String to, Optional<String> correlationId) {
@penguineer penguineer merged commit ff0bdce into main Nov 6, 2024
1 check passed
@penguineer penguineer deleted the send-correlated-error branch November 6, 2024 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant