Skip to content

Commit

Permalink
Move method to its right place
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlesDD committed Oct 8, 2024
1 parent 901a848 commit a291490
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/dd-trace/src/appsec/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ function reportAttack (attackData) {
rootSpan.addTags(newTags)
}

function isFingerprintDerivative (derivative) {
return derivative.startsWith('_dd.appsec.fp')
}

function reportDerivatives (derivatives) {
if (!derivatives) return

Expand Down Expand Up @@ -243,10 +247,6 @@ function setRateLimit (rateLimit) {
limiter = new Limiter(rateLimit)
}

function isFingerprintDerivative (derivative) {
return derivative.startsWith('_dd.appsec.fp')
}

module.exports = {
metricsQueue,
filterHeaders,
Expand Down

0 comments on commit a291490

Please sign in to comment.