Do we do want to ignore proxies?
If so, we have to change the test to be compatible.
This commit is contained in:
parent
be34eaf032
commit
2561e72824
|
@ -48,7 +48,7 @@ public class AgentInstaller {
|
||||||
.or(nameStartsWith("datadog.opentracing."))
|
.or(nameStartsWith("datadog.opentracing."))
|
||||||
.or(nameStartsWith("datadog.slf4j."))
|
.or(nameStartsWith("datadog.slf4j."))
|
||||||
.or(nameStartsWith("java.").and(not(nameStartsWith("java.util.concurrent."))))
|
.or(nameStartsWith("java.").and(not(nameStartsWith("java.util.concurrent."))))
|
||||||
.or(nameStartsWith("com.sun.").and(not(nameStartsWith("com.sun.proxy."))))
|
.or(nameStartsWith("com.sun."))
|
||||||
.or(nameStartsWith("sun."))
|
.or(nameStartsWith("sun."))
|
||||||
.or(nameStartsWith("jdk."))
|
.or(nameStartsWith("jdk."))
|
||||||
.or(nameStartsWith("org.aspectj."))
|
.or(nameStartsWith("org.aspectj."))
|
||||||
|
|
|
@ -8,6 +8,8 @@ import spock.lang.Shared
|
||||||
import spock.lang.Unroll
|
import spock.lang.Unroll
|
||||||
|
|
||||||
import javax.jms.Connection
|
import javax.jms.Connection
|
||||||
|
import javax.jms.Message
|
||||||
|
import javax.jms.MessageListener
|
||||||
import javax.jms.Session
|
import javax.jms.Session
|
||||||
import javax.jms.TextMessage
|
import javax.jms.TextMessage
|
||||||
import java.util.concurrent.CountDownLatch
|
import java.util.concurrent.CountDownLatch
|
||||||
|
@ -152,10 +154,13 @@ class JMS1Test extends AgentTestRunner {
|
||||||
def messageRef = new AtomicReference<TextMessage>()
|
def messageRef = new AtomicReference<TextMessage>()
|
||||||
def producer = session.createProducer(destination)
|
def producer = session.createProducer(destination)
|
||||||
def consumer = session.createConsumer(destination)
|
def consumer = session.createConsumer(destination)
|
||||||
consumer.setMessageListener { message ->
|
consumer.setMessageListener new MessageListener() {
|
||||||
|
@Override
|
||||||
|
void onMessage(Message message) {
|
||||||
lock.await() // ensure the producer trace is reported first.
|
lock.await() // ensure the producer trace is reported first.
|
||||||
messageRef.set(message)
|
messageRef.set(message)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
def message = session.createTextMessage("a message")
|
def message = session.createTextMessage("a message")
|
||||||
producer.send(message)
|
producer.send(message)
|
||||||
|
|
|
@ -17,6 +17,8 @@ import org.hornetq.jms.client.HornetQMessageProducer
|
||||||
import spock.lang.Shared
|
import spock.lang.Shared
|
||||||
import spock.lang.Unroll
|
import spock.lang.Unroll
|
||||||
|
|
||||||
|
import javax.jms.Message
|
||||||
|
import javax.jms.MessageListener
|
||||||
import javax.jms.Session
|
import javax.jms.Session
|
||||||
import javax.jms.TextMessage
|
import javax.jms.TextMessage
|
||||||
import java.util.concurrent.CountDownLatch
|
import java.util.concurrent.CountDownLatch
|
||||||
|
@ -143,10 +145,13 @@ class JMS2Test extends AgentTestRunner {
|
||||||
def messageRef = new AtomicReference<TextMessage>()
|
def messageRef = new AtomicReference<TextMessage>()
|
||||||
def producer = session.createProducer(destination)
|
def producer = session.createProducer(destination)
|
||||||
def consumer = session.createConsumer(destination)
|
def consumer = session.createConsumer(destination)
|
||||||
consumer.setMessageListener { message ->
|
consumer.setMessageListener new MessageListener() {
|
||||||
|
@Override
|
||||||
|
void onMessage(Message message) {
|
||||||
lock.await() // ensure the producer trace is reported first.
|
lock.await() // ensure the producer trace is reported first.
|
||||||
messageRef.set(message)
|
messageRef.set(message)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
def message = session.createTextMessage("a message")
|
def message = session.createTextMessage("a message")
|
||||||
producer.send(message)
|
producer.send(message)
|
||||||
|
|
Loading…
Reference in New Issue