Skip to content

Commit

Permalink
clarify usage of correlationId
Browse files Browse the repository at this point in the history
  • Loading branch information
alramlechner committed Feb 7, 2019
1 parent ed9e728 commit 5d6f022
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,13 @@ try {
// transport the dynatrace tag along with the message:
messageToSend.setHeaderField(
OneAgentSDK.DYNATRACE_MESSAGE_PROPERTYNAME, outgoingMessageTracer.getDynatraceStringTag());
// optional: add application provided correlationId
outgoingMessageTracer.setCorrelationId(toSend.correlationId);

theQueue.send(messageToSend);

// optional: add messageid provided from messaging system
outgoingMessageTracer.setVendorMessageId(toSend.getMessageId());
// optional: add correlationId
outgoingMessageTracer.setCorrelationId(toSend.correlationId);
} catch (Exception e) {
outgoingMessageTracer.error(e.getMessage());
// rethrow or add your exception handling
Expand Down

0 comments on commit 5d6f022

Please sign in to comment.