Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Guillaume Polaert 2017-06-02 16:33:21 +02:00
commit 09721bb8ca
3 changed files with 12 additions and 6 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\..*