File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -351,12 +351,13 @@ try {
351351 // transport the dynatrace tag along with the message:
352352 messageToSend. setHeaderField(
353353 OneAgentSDK . DYNATRACE_MESSAGE_PROPERTYNAME , outgoingMessageTracer. getDynatraceStringTag());
354+ // optional: add application provided correlationId
355+ outgoingMessageTracer. setCorrelationId(toSend. correlationId);
356+
354357 theQueue. send(messageToSend);
355358
356359 // optional: add messageid provided from messaging system
357360 outgoingMessageTracer. setVendorMessageId(toSend. getMessageId());
358- // optional: add correlationId
359- outgoingMessageTracer. setCorrelationId(toSend. correlationId);
360361} catch (Exception e) {
361362 outgoingMessageTracer. error(e. getMessage());
362363 // rethrow or add your exception handling
You can’t perform that action at this time.
0 commit comments