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 {
351
351
// transport the dynatrace tag along with the message:
352
352
messageToSend. setHeaderField(
353
353
OneAgentSDK . DYNATRACE_MESSAGE_PROPERTYNAME , outgoingMessageTracer. getDynatraceStringTag());
354
+ // optional: add application provided correlationId
355
+ outgoingMessageTracer. setCorrelationId(toSend. correlationId);
356
+
354
357
theQueue. send(messageToSend);
355
358
356
359
// optional: add messageid provided from messaging system
357
360
outgoingMessageTracer. setVendorMessageId(toSend. getMessageId());
358
- // optional: add correlationId
359
- outgoingMessageTracer. setCorrelationId(toSend. correlationId);
360
361
} catch (Exception e) {
361
362
outgoingMessageTracer. error(e. getMessage());
362
363
// rethrow or add your exception handling
You can’t perform that action at this time.
0 commit comments