-
Notifications
You must be signed in to change notification settings - Fork 144
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
opentracing-spring-cloud-starter breaks stomp client publish #301
Comments
FYI I have more details of my broker setup and client are at spring-projects/spring-framework#25640 |
I believe the issue is related to how TracingChannelInterceptor is implemented. It uses The Javadoc provides more details but roughly the usage is something like this: MessageHeaderAccessor accessor = MessageHeaderAccessor.getAccessor(message, MessageHeaderAccessor.class);
if (accessor != null && accessor.isMutable()) {
// headers are mutable, so change the headers and no need to re-create message
updateHeaders(accessor);
}
else {
accessor = MessageHeaderAccessor.getMutableAccessor(message);
accessor.setLeaveMutable(true); // in preSend, leaving this mutable could benefit other interceptors
updateHeaders(accessor);
return new GenericMessage<>(message.getPayload(), accessor.toMessageHeaders());
} where |
@rstoyanchev wrapper is lost when we return a new GenericMessage object in the above snippet which still causes IllegalStateException in StompBrokerRelayMessageHandler. Do we have any solutions for this |
@rstoyanchev I'm using a java agent (opentelemetry java agent) to catch all traffic in, out my spring-boot app. It modifies header of websocket for tracing. Then I receive IllegalStateException. Do you know how to fix it? My stack trace: |
As soon as I add opentracing-spring-cloud-starter:0.5.7 jar to my app I am no longer able to publish messages via stomp from client.
Client side subscribe works, and server publish messages are received on the client but the client can't publish as the following execption is received :
Spring boot version 2.3.4.RELEASE
The text was updated successfully, but these errors were encountered: