-
Notifications
You must be signed in to change notification settings - Fork 20
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
Don't Encode wrp again #174
Comments
from this function: I realized that the ContentType of the wrp may not be correct when sending a consumer the msgpack we received from Talaria. @schmidtw, is that acceptable? |
I think to do this, we will need to make a wrapper object that contains the multiple forms of the object. Should this functionality be something in the wrp-go functionality? |
@kristinaspring to answer your question about the ContentType, the value it represents differs based on the form the WRP takes in the outgoing message. In the HTTP form of WRP case the payload of the HTTP is the same as the payload of the WRP. The HTTP.Content-Type needs to describe the payload so it is set to the WRP.Content-Type. In the case where the WRP form is delivered, the HTTP payload is of type application/msgpack (I think). The WRP.Content-Type is still whatever Parodus sent that describes the WRP.payload contents. |
The HTTP The |
Steps forward that we discussed:
|
The content type confusion is solved, it is working as expected currently. |
Remaining task:
|
Just looked at the As mentioned above, transaction UUIDs only apply to request/response WRP messages, caduceus shouldn't need to fill that in. As for the WRP messages without a ContentType, that's a tricky one ... but from the code it seems like the contract is to default it to From what I gathered in the posts above, caduceus should stop populating the tUUIDs and move the code that corrects the WRP.ContentType to talaria. |
The team discussed and decided that we shouldn't be adding transaction UUIDs (which aren't even part of the Simple Event spec). The adding of a default content type when it is empty should be handled by Talaria, which is covered under this issue: The only thing remaining for this issue is removing the code for the modification of the wrp, including the metric attached to it. This can be done after the functionality is added to Talaria. |
The change for the default content type was included in this version of talaria: So we can start on the relevant changes in caduceus. This includes:
|
With |
caduceus/outboundSender.go
Line 519 in 94286dd
Instead of re-encoding the wrp, we should just pass along the original bytes that caduceus received and send them in this case.
The text was updated successfully, but these errors were encountered: