Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
iNikem committed Oct 2, 2020
1 parent e542abb commit bef7b0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions instrumentation/jms-1.1/src/jms2Test/groovy/JMS2Test.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ class JMS2Test extends AgentTestRunner {
}
}
// passing messageId = null will verify message.id is not captured,
// passing messageId = "" will verify message.id is captured (but won't verify anything about the value),
// any other value for messageId will verify that message.id is captured and has that same value
static consumerSpan(TraceAssert trace, int index, String destinationType, String destinationName, String messageId, Object parentOrLinkedSpan, Operation operation) {
trace.span(index) {
operationName destinationName + " " + operation.name()
Expand Down
3 changes: 3 additions & 0 deletions instrumentation/jms-1.1/src/test/groovy/JMS1Test.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ class JMS1Test extends AgentTestRunner {
}
}
// passing messageId = null will verify message.id is not captured,
// passing messageId = "" will verify message.id is captured (but won't verify anything about the value),
// any other value for messageId will verify that message.id is captured and has that same value
static consumerSpan(TraceAssert trace, int index, String destinationType, String destinationName, String messageId, Object parentOrLinkedSpan, Operation operation) {
trace.span(index) {
operationName destinationName + " " + operation.name()
Expand Down

0 comments on commit bef7b0e

Please sign in to comment.