andytaylor commented on code in PR #4183:
URL: https://github.com/apache/activemq-artemis/pull/4183#discussion_r1061297172


##########
artemis-core-client/src/main/java/org/apache/activemq/artemis/core/message/impl/CoreMessage.java:
##########
@@ -845,6 +845,15 @@ public String getAddress() {
       }
    }
 
+   @Override
+   public String getProducerID() {
+      if (properties.containsProperty(PRODUCER_ID)) {
+         return properties.getSimpleStringProperty(PRODUCER_ID).toString();
+      }
+      //This means the client is pre 2.19.0 and doesn't support creating a 
server producer for metrics, this will create 1 to track all events

Review Comment:
   fixed



##########
artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientProducerImpl.java:
##########
@@ -219,6 +233,8 @@ private void doSend(SimpleString sendingAddress,
          // In case we received message from another protocol, we first need 
to convert it to core as the ClientProducer only understands core
          ICoreMessage msg = msgToSend.toCore();
 
+         msg.putStringProperty(PRODUCER_ID, new SimpleString(uuid.toString()));

Review Comment:
   fixed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to