Skip to content

Commit 2e3f1b8

Browse files
committed
change ordering to prioritize programmatic config
1 parent 7707fc2 commit 2e3f1b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/dd-trace/src/plugin_manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ module.exports = class PluginManager {
7878
this._pluginsByName[name] = new Plugin(this._tracer, this._tracerConfig)
7979
}
8080
const pluginConfig = this._configsByName[name] || {
81-
enabled: isTrue(getEnvEnabled(Plugin)) || (this._tracerConfig.plugins !== false && !Plugin.experimental)
81+
enabled: this._tracerConfig.plugins !== false && (!Plugin.experimental || isTrue(getEnvEnabled(Plugin)))
8282
}
8383

8484
// extracts predetermined configuration from tracer and combines it with plugin-specific config

0 commit comments

Comments
 (0)