Skip to content

Commit cfdcf8c

Browse files
committed
change to static config
1 parent 6456f34 commit cfdcf8c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap/instrumentation/decorator/HttpClientDecorator.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ public abstract class HttpClientDecorator<REQUEST, RESPONSE> extends UriBasedCli
5050

5151
private static final boolean CLIENT_TAG_HEADERS = Config.get().isHttpClientTagHeaders();
5252

53+
private static final boolean APPSEC_RASP_ENABLED = Config.get().isAppSecRaspEnabled();
54+
5355
protected abstract String method(REQUEST request);
5456

5557
protected abstract URI url(REQUEST request) throws URISyntaxException;
@@ -186,7 +188,7 @@ public long getResponseContentLength(final RESPONSE response) {
186188
}
187189

188190
private void onNetworkConnection(final String networkConnection) {
189-
if (!Config.get().isAppSecRaspEnabled()) {
191+
if (!APPSEC_RASP_ENABLED) {
190192
return;
191193
}
192194
if (networkConnection == null) {

0 commit comments

Comments
 (0)