Refine HTTP client instrumentation versions + finner logging

This commit is contained in:
renaudboutet 2017-06-01 18:38:08 +02:00
parent 470ddac5fb
commit a48ff4c3c9
4 changed files with 13 additions and 7 deletions

View File

@ -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 |

View File

@ -97,11 +97,14 @@ public class TraceAnnotationsManager {
}
}
}
StringWriter sw = new StringWriter();
try(PrintWriter pr = new PrintWriter(sw)){
transformer.removeScripts(new ArrayList<String>(rulesToRemove), pr);
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());
}
log.log(Level.INFO, sw.toString());
}
/**

View File

@ -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\..*

View File

@ -14,7 +14,7 @@
<properties>
<!-- Datadog version -->
<dd-trace.version>0.0.3-SNAPSHOT</dd-trace.version>
<dd-trace.version>0.0.3</dd-trace.version>
</properties>