Skip to content

Commit

Permalink
don't require appsec and iast when disabling them, if they haven't al…
Browse files Browse the repository at this point in the history
…ready been required
  • Loading branch information
ida613 committed Feb 13, 2024
1 parent 1bdacab commit 55fa0cd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/dd-trace/src/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ class Tracer extends NoopProxy {
require('./appsec/iast').enable(config, this._tracer)
}
} else {
require('./appsec').disable()
require('./appsec/iast').disable()
if (this._tracingInitialized) {
require('./appsec').disable()
require('./appsec/iast').disable()
}
}
if (this._tracingInitialized) {
this._tracer.configure(config)
Expand Down

0 comments on commit 55fa0cd

Please sign in to comment.