Skip to content

Commit

Permalink
lazy load appsec/remote_config
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanista committed Jan 9, 2025
1 parent 6e5d2e8 commit 0796a7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/dd-trace/src/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const DynamicInstrumentation = require('./debugger')
const telemetry = require('./telemetry')
const nomenclature = require('./service-naming')
const PluginManager = require('./plugin_manager')
const remoteConfig = require('./appsec/remote_config')
const AppsecSdk = require('./appsec/sdk')
const dogstatsd = require('./dogstatsd')
const NoopDogStatsDClient = require('./noop/dogstatsd')
Expand Down Expand Up @@ -89,7 +88,7 @@ class Tracer extends NoopProxy {
}

if (config.remoteConfig.enabled && !config.isCiVisibility) {
const rc = remoteConfig.enable(config, this._modules.appsec)
const rc = require('./appsec/remote_config').enable(config, this._modules.appsec)

rc.setProductHandler('APM_TRACING', (action, conf) => {
if (action === 'unapply') {
Expand Down

0 comments on commit 0796a7f

Please sign in to comment.