Refine HTTP client instrumentation versions + finner logging
This commit is contained in:
parent
470ddac5fb
commit
a48ff4c3c9
|
@ -93,7 +93,7 @@ When attached to an application the `dd-java-agent` automatically instruments th
|
||||||
| FWK | Versions | Comments |
|
| FWK | Versions | Comments |
|
||||||
| ------------- |:-------------:| ----- |
|
| ------------- |:-------------:| ----- |
|
||||||
| OkHTTP | 3.x | HTTP client calls with [cross-process](http://opentracing.io/documentation/pages/api/cross-process-tracing.html) headers |
|
| 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 |
|
| AWS SDK | 1.x | Trace all client calls to any AWS service |
|
||||||
| Web Servlet Filters| Depending on server | See [Servers](#servers) section |
|
| Web Servlet Filters| Depending on server | See [Servers](#servers) section |
|
||||||
|
|
||||||
|
|
|
@ -97,12 +97,15 @@ public class TraceAnnotationsManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!rulesToRemove.isEmpty()){
|
||||||
StringWriter sw = new StringWriter();
|
StringWriter sw = new StringWriter();
|
||||||
try(PrintWriter pr = new PrintWriter(sw)){
|
try(PrintWriter pr = new PrintWriter(sw)){
|
||||||
transformer.removeScripts(new ArrayList<String>(rulesToRemove), pr);
|
transformer.removeScripts(new ArrayList<String>(rulesToRemove), pr);
|
||||||
}
|
}
|
||||||
log.log(Level.INFO, sw.toString());
|
log.log(Level.INFO, sw.toString());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method loads any OpenTracing Agent rules (otarules.btm) found as resources
|
* This method loads any OpenTracing Agent rules (otarules.btm) found as resources
|
||||||
|
|
|
@ -3,7 +3,10 @@ okhttp:
|
||||||
valid_versions: 3\..*
|
valid_versions: 3\..*
|
||||||
httpclient:
|
httpclient:
|
||||||
key: apache http
|
key: apache http
|
||||||
valid_versions: 4\..*
|
valid_versions: 4\.[3|4|5]\..*
|
||||||
|
commons-httpclient:
|
||||||
|
key: apache http
|
||||||
|
valid_versions: none
|
||||||
aws-java-sdk:
|
aws-java-sdk:
|
||||||
key: aws
|
key: aws
|
||||||
valid_versions: 1\..*
|
valid_versions: 1\..*
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<!-- Datadog version -->
|
<!-- Datadog version -->
|
||||||
<dd-trace.version>0.0.3-SNAPSHOT</dd-trace.version>
|
<dd-trace.version>0.0.3</dd-trace.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue