Skip to content

Commit

Permalink
APM uninstrumentation: small fix to preserve original behaviour (#4057)
Browse files Browse the repository at this point in the history
  • Loading branch information
ida613 authored and tlhunter committed Feb 14, 2024
1 parent 6bd882b commit 4cecf98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/dd-trace/src/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,11 @@ class Tracer extends NoopProxy {
if (config.iast.enabled) {
require('./appsec/iast').enable(config, this._tracer)
}
} else {
} else if (this._tracingInitialized) {
require('./appsec').disable()
require('./appsec/iast').disable()
}

if (this._tracingInitialized) {
this._tracer.configure(config)
this._pluginManager.configure(config)
Expand Down

0 comments on commit 4cecf98

Please sign in to comment.