Skip to content

Commit

Permalink
use setCollectionMode() in appsec index
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-id committed Sep 12, 2024
1 parent 5f85b8e commit 1b074ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/dd-trace/src/appsec/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const web = require('../plugins/util/web')
const { extractIp } = require('../plugins/util/ip_extractor')
const { HTTP_CLIENT_IP } = require('../../../../ext/tags')
const { isBlocked, block, setTemplates, getBlockingAction } = require('./blocking')
const { passportTrackEvent } = require('./passport')
const { setCollectionMode, passportTrackEvent } = require('./passport')
const { storage } = require('../../../datadog-core')
const graphql = require('./graphql')
const rasp = require('./rasp')
Expand Down Expand Up @@ -66,6 +66,7 @@ function enable (_config) {
responseSetHeader.subscribe(onResponseSetHeader)

if (_config.appsec.eventTracking.enabled) {
setCollectionMode(_config.appsec.eventTracking.mode)
passportVerify.subscribe(onPassportVerify)
}

Expand Down

0 comments on commit 1b074ad

Please sign in to comment.