Skip to content

Commit

Permalink
Do not enable auto tracking of Azure SDK if dependency tracking is di…
Browse files Browse the repository at this point in the history
…sabled (#982)
  • Loading branch information
hectorhdzg authored Jun 22, 2022
1 parent 8bbc37c commit 9d65339
Show file tree
Hide file tree
Showing 2 changed files with 417 additions and 365 deletions.
2 changes: 1 addition & 1 deletion AutoCollection/HttpDependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class AutoCollectHttpDependencies {
this._initialize();
}
if (DiagChannel.IsInitialized) {
require("./diagnostic-channel/azure-coretracing.sub").enable(true, this._client);
require("./diagnostic-channel/azure-coretracing.sub").enable(isEnabled, this._client);
require("./diagnostic-channel/mongodb.sub").enable(isEnabled, this._client);
require("./diagnostic-channel/mysql.sub").enable(isEnabled, this._client);
require("./diagnostic-channel/redis.sub").enable(isEnabled, this._client);
Expand Down
Loading

0 comments on commit 9d65339

Please sign in to comment.