Skip to content

fix wrongly set correlation ids when sending a command #220

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
merged 2 commits into from
Oct 22, 2019

Conversation

rhinof
Copy link
Contributor

@rhinof rhinof commented Oct 22, 2019

fixes #219

Guy Baron added 2 commits October 22, 2019 11:46
Fixing a bug where grabbit would set the message.CorrelationID and the message.SagaCorrelationID header even
if the message was a command and not a reply.
@rhinof rhinof requested a review from vladshub October 22, 2019 13:24
@@ -18,6 +18,8 @@ const (
CMD Semantics = "cmd"
//EVT represenst a messge with event semantics in grabbit
EVT Semantics = "evt"
//REPLY represenst a messge with reply semantics in grabbit
REPLY Semantics = "reply"
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we sure that this is the correct place to add this sematic? since we are not using it anywhere except for the internal implementation of setCorrelationId....

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know, but it is worth making it explicit IMO

@rhinof rhinof merged commit 211f219 into v1.x Oct 22, 2019
@rhinof rhinof deleted the saga_invocation_fix branch October 22, 2019 17:14
rhinof pushed a commit that referenced this pull request Dec 2, 2019
* adding the SagaCorrelationID header only for replies

Fixing a bug where grabbit would set the message.CorrelationID and the message.SagaCorrelationID header even
if the message was a command and not a reply.

* fixing minor documentation issue
vladshub pushed a commit that referenced this pull request Dec 2, 2019
* added reply to initiator functionality to sagas (#157)

* added generic handler metrics with message type as the label (#144)

* added generic handler metrics with message type as the label

* add handler name label to the metrics

* adding new metrics to the read me

* Fix handle empty body (#156)

* fixing ReplyToInitiator not working  when initiator sends a message via the RPC interface (#163)


* fixing ReplyToInitiator not working  when initiator sends a message via the RPC interface

* Improved wording of saga documentation article (#164)

* better wording for documentation

* added golangcli lint configuration and fixed linting failures (#165)

* Fix logging and added logging documentation (#176)

* fixed logging issues and added documentation

logging via the invocation interface was broken and did not add
contextual data related to the invocation due to a bug in the way the Glogged structure is currently implemented.

Also added documentation on how logging should be done within a
handler including adding context to returned errors so that data gets logged

* added missing documentation file

* added documentation on serialization support (#177)

* fixed emperror url format

* added serialization documentation

* added documentation for messaging patterns, retries and transactional processing (#181)

* fixed emperror url format

* added serialization documentation

* added documentation for message semantics, retries and transactions

* Added sample application (#184)

* fixing minor tech debt issues (#199)

* fix(bug:200) logs are now being reported correctly

Fixes issue #200
Also updated go.mod for newer versions of dependancies

* fix wrongly set correlation ids when sending a command (#220)

* adding the SagaCorrelationID header only for replies

Fixing a bug where grabbit would set the message.CorrelationID and the message.SagaCorrelationID header even
if the message was a command and not a reply.

* fixing minor documentation issue

* only sending headers over the wire if they contain a value (#222)

* only sending headers over the wire if they contain a value

fixing #221

* deleting file that was added by mistake

* goodbye (#223)

* goodbye

* Fixing my last bug :)

* Add saga latency metric (#224)

records the execution time of the entire saga, from it's creation until deletion (in ms). having the "Service", "SagaType", "Initiator" as labels|
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.

2 participants