File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
dd-java-agent/appsec/src/main/java/com/datadog/appsec/ddwaf
internal-api/src/main/java/datadog/trace/api/gateway Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -424,7 +424,9 @@ public void onDataAvailable(
424424 // Keep event related span, because it could be ignored in case of
425425 // reduced datadog sampling rate.
426426 activeSpan .getLocalRootSpan ().setTag (Tags .ASM_KEEP , true );
427-
427+ // If APM is disabled, inform downstream services that the current
428+ // distributed trace contains at least one ASM event and must inherit
429+ // the given force-keep priority
428430 activeSpan
429431 .getLocalRootSpan ()
430432 .setTag (Tags .PROPAGATED_TRACE_SOURCE , ProductTraceSource .ASM );
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public boolean isBlocking() {
2828 }
2929
3030 class RequestBlockingAction implements Action {
31- private final long statusCode ;
31+ private final int statusCode ;
3232 private final BlockingContentType blockingContentType ;
3333 private final Map <String , String > extraHeaders ;
3434
@@ -56,7 +56,7 @@ public boolean isBlocking() {
5656 }
5757
5858 public int getStatusCode () {
59- return Math . toIntExact ( statusCode ) ;
59+ return statusCode ;
6060 }
6161
6262 public BlockingContentType getBlockingContentType () {
You can’t perform that action at this time.
0 commit comments