@@ -48,6 +48,8 @@ dependencies {
48
48
api group : ' io.opentracing.contrib' , name : ' opentracing-tracerresolver' , version : ' 0.1.6'
49
49
50
50
api libs. slf4j
51
+ api libs. jnr. unixsocket
52
+
51
53
implementation project(' :dd-trace-ot:correlation-id-injection' )
52
54
53
55
testImplementation project(" :dd-java-agent:testing" )
@@ -96,16 +98,15 @@ shadowJar {
96
98
exclude(dependency(' io.opentracing:' ))
97
99
exclude(dependency(' io.opentracing.contrib:' ))
98
100
exclude(dependency(' org.slf4j:' ))
101
+ exclude(dependency(' com.github.jnr:' ))
99
102
}
100
103
101
104
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)[^/]*] ' )
105
108
}
106
109
relocate(' dogstatsd/' , ' ddtrot/dogstatsd/' )
107
- relocate(' jni/' , ' ddtrot/jni/' )
108
- relocate(' jnr/' , ' ddtrot/jnr/' )
109
110
relocate(' okhttp3.' , ' ddtrot.okhttp3.' )
110
111
relocate(' okio.' , ' ddtrot.okio.' )
111
112
relocate(' org.' , ' ddtrot.org.' ) {
0 commit comments