@@ -48,6 +48,8 @@ dependencies {
4848 api group : ' io.opentracing.contrib' , name : ' opentracing-tracerresolver' , version : ' 0.1.6'
4949
5050 api libs. slf4j
51+ api libs. jnr. unixsocket
52+
5153 implementation project(' :dd-trace-ot:correlation-id-injection' )
5254
5355 testImplementation project(" :dd-java-agent:testing" )
@@ -96,16 +98,15 @@ shadowJar {
9698 exclude(dependency(' io.opentracing:' ))
9799 exclude(dependency(' io.opentracing.contrib:' ))
98100 exclude(dependency(' org.slf4j:' ))
101+ exclude(dependency(' com.github.jnr:' ))
99102 }
100103
101104 relocate(' com.' , ' ddtrot.com.' ) {
102- // don't relocate native methods
103- exclude( ' com.kenai.jffi.* ' )
104- exclude(' com. kenai. jffi.internal.* ' )
105+ // leave our PatchInit class shaded even though its not used in this deployment
106+ // unfortunately the shadow plugin doesn't let us completely remove this class
107+ exclude(' %regex[ com/ kenai/ jffi/(?!PatchInit)[^/]*] ' )
105108 }
106109 relocate(' dogstatsd/' , ' ddtrot/dogstatsd/' )
107- relocate(' jni/' , ' ddtrot/jni/' )
108- relocate(' jnr/' , ' ddtrot/jnr/' )
109110 relocate(' okhttp3.' , ' ddtrot.okhttp3.' )
110111 relocate(' okio.' , ' ddtrot.okio.' )
111112 relocate(' org.' , ' ddtrot.org.' ) {
0 commit comments