Skip to content

Commit 88a00bf

Browse files
Fix tests
1 parent 1e8e82c commit 88a00bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ protected void onHttpClientRequest(final AgentSpan span, final String url) {
186186
if (url == null) {
187187
return;
188188
}
189-
final long requestId = span.getSpanId();
190189
final BiFunction<RequestContext, HttpClientRequest, Flow<Void>> requestCb =
191190
AgentTracer.get()
192191
.getCallbackProvider(RequestContextSlot.APPSEC)
@@ -201,6 +200,7 @@ protected void onHttpClientRequest(final AgentSpan span, final String url) {
201200
return;
202201
}
203202

203+
final long requestId = span.getSpanId();
204204
Flow<Void> flow = requestCb.apply(ctx, new HttpClientRequest(requestId, url));
205205
Flow.Action action = flow.getAction();
206206
if (action instanceof Flow.Action.RequestBlockingAction) {

dd-java-agent/appsec/src/test/groovy/com/datadog/appsec/gateway/GatewayBridgeIGRegistrationSpecification.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class GatewayBridgeIGRegistrationSpecification extends DDSpecification {
1010
SubscriptionService ig = Mock()
1111
EventDispatcher eventDispatcher = Mock()
1212

13-
GatewayBridge bridge = new GatewayBridge(ig, eventDispatcher, null, [])
13+
GatewayBridge bridge = new GatewayBridge(ig, eventDispatcher, null, null, [])
1414

1515
void 'request_body_start and request_body_done are registered'() {
1616
given:

0 commit comments

Comments
 (0)