Skip to content

Commit b8d3158

Browse files
committed
comments
Signed-off-by: sezen.leblay <sezen.leblay@datadoghq.com>
1 parent 5f82fb0 commit b8d3158

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

2 files changed

+5
-3
lines changed

dd-java-agent/appsec/src/main/java/com/datadog/appsec/ddwaf/WAFModule.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

internal-api/src/main/java/datadog/trace/api/gateway/Flow.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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() {

0 commit comments

Comments
 (0)