Refine HTTP client instrumentation versions + finner logging
MODIFY
dd-java-agent/README.md
dd-java-agent/README.md
@@ -93,7 +93,7 @@ When attached to an application the `dd-java-agent` automatically instruments th
| FWK | Versions | Comments |
| ------------- |:-------------:| ----- |
| OkHTTP | 3.x | HTTP client calls with [cross-process](http://opentracing.io/documentation/pages/api/cross-process-tracing.html) headers |
-| Apache HTTP Client | 4.x |HTTP client calls with [cross-process](http://opentracing.io/documentation/pages/api/cross-process-tracing.html) headers|
+| Apache HTTP Client | 4.3 + |HTTP client calls with [cross-process](http://opentracing.io/documentation/pages/api/cross-process-tracing.html) headers|
| AWS SDK | 1.x | Trace all client calls to any AWS service |
| Web Servlet Filters| Depending on server | See [Servers](#servers) section |

MODIFY
dd-java-agent/src/main/java/io/opentracing/contrib/agent/TraceAnnotationsManager.java
dd-java-agent/src/main/java/io/opentracing/contrib/agent/TraceAnnotationsManager.java
@@ -97,12 +97,15 @@ public class TraceAnnotationsManager {
}
}
}
+
+ if(!rulesToRemove.isEmpty()){
StringWriter sw = new StringWriter();
try(PrintWriter pr = new PrintWriter(sw)){
transformer.removeScripts(new ArrayList<String>(rulesToRemove), pr);
}
log.log(Level.INFO, sw.toString());
}
+ }
/**
* This method loads any OpenTracing Agent rules (otarules.btm) found as resources

MODIFY
dd-java-agent/src/main/resources/dd-trace-authorized-versions.yaml
dd-java-agent/src/main/resources/dd-trace-authorized-versions.yaml
@@ -3,7 +3,10 @@ okhttp:
valid_versions: 3\..*
httpclient:
key: apache http
- valid_versions: 4\..*
+ valid_versions: 4\.[3|4|5]\..*
+commons-httpclient:
+ key: apache http
+ valid_versions: none
aws-java-sdk:
key: aws
valid_versions: 1\..*

MODIFY
dd-trace-examples/dropwizard-mongo-client/pom.xml
dd-trace-examples/dropwizard-mongo-client/pom.xml
<properties>
<!-- Datadog version -->
- <dd-trace.version>0.0.3-SNAPSHOT</dd-trace.version>
+ <dd-trace.version>0.0.3</dd-trace.version>
</properties>

Refine HTTP client instrumentation versions + finner logging