Skip to content

Commit 223e114

Browse files
committed
Changes to support telemetry
1 parent b391ad0 commit 223e114

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/dd-trace/src/appsec/iast/analyzers/missing-header-analyzer.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ class MissingHeaderAnalyzer extends Analyzer {
1919
super(type)
2020

2121
this.headerName = headerName
22-
this.addSub('datadog:iast:response-end', (data) => this.analyze(data))
22+
}
23+
24+
onConfigure () {
25+
this.addSub({
26+
channelName: 'datadog:iast:response-end',
27+
moduleName: 'http'
28+
}, (data) => this.analyze(data))
2329
}
2430

2531
_getLocation () {

0 commit comments

Comments
 (0)