Skip to content

Commit 57f6caf

Browse files
committed
wip
1 parent 34594a9 commit 57f6caf

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

dd-java-agent/appsec/src/main/java/com/datadog/appsec/api/security/ApiSecuritySamplerImpl.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -186,24 +186,18 @@ private void logSamplingDecision(final String method, final long hash) {
186186
if (!log.isDebugEnabled()) {
187187
return;
188188
}
189-
190-
final long timestamp = timeSource.getCurrentTimeMillis();
191189
AgentSpan activeSpan = AgentTracer.get().activeSpan();
192190

193191
if (activeSpan != null) {
194192
log.debug(
195-
"API security sampling decision in {}: hash={}, traceId={}, spanId={}, timestamp={}",
193+
"API security sampling decision in {}: hash={}, traceId={}, spanId={}",
196194
method,
197195
hash,
198196
activeSpan.getTraceId(),
199-
activeSpan.getSpanId(),
200-
timestamp);
197+
activeSpan.getSpanId());
201198
} else {
202199
log.debug(
203-
"API security sampling decision in {}: hash={}, traceId=null, spanId=null, timestamp={}",
204-
method,
205-
hash,
206-
timestamp);
200+
"API security sampling decision in {}: hash={}, traceId=null, spanId=null", method, hash);
207201
}
208202
}
209203
}

0 commit comments

Comments
 (0)