Skip to content

Commit

Permalink
Update packages/dd-trace/src/appsec/iast/vulnerability-reporter.js
Browse files Browse the repository at this point in the history
Co-authored-by: Igor Unanua <[email protected]>
  • Loading branch information
CarlesDD and iunanua authored Nov 26, 2024
1 parent f66ccfa commit b7179c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/dd-trace/src/appsec/iast/vulnerability-reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ function addVulnerability (iastContext, vulnerability) {
})
}

if (!span) return

keepTrace(span, SAMPLING_MECHANISM_APPSEC)
standalone.sample(span)

Expand Down

0 comments on commit b7179c2

Please sign in to comment.