Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jandro996 committed Jun 21, 2024
1 parent 4380072 commit 60d33b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ public void init() {
}
}
} else if (hasUserTrackingEvent(traceSeg)) {
// Report all collected request headers on user tracking event
writeRequestHeaders(traceSeg, REQUEST_HEADERS_ALLOW_LIST, ctx.getRequestHeaders());
// Report all collected request headers on user tracking event
writeRequestHeaders(traceSeg, REQUEST_HEADERS_ALLOW_LIST, ctx.getRequestHeaders());
} else {
// Report minimum set of collected request headers
writeRequestHeaders(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ public void onDataAvailable(
Collection<AppSecEvent> events = buildEvents(resultWithData);

if (!events.isEmpty() && !reqCtx.isThrottled(rateLimiter)) {
AgentSpan activeSpan = AgentTracer.activeSpan();
AgentSpan activeSpan = AgentTracer.get().activeSpan();
if (activeSpan != null) {
if (log.isDebugEnabled()) {
log.debug("Setting force-keep tag on the current span");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ class GatewayBridgeSpecification extends DDSpecification {
1 * mockAppSecCtx.isThrottled(_) >> true
0 * spanInfo.getTags()
0 * traceSegment.setDataTop("appsec", _)

}

void 'actor ip calculated from headers'() {
Expand Down

0 comments on commit 60d33b8

Please sign in to comment.