Replies: 1 comment 3 replies
-
This is best asked in AzureMonitor repo. When using the packages from this repo, nothing is enabled by default - i.e one has to opt-in to collect dependencies (eg: AddHttpClientInstrumentation()) - so the easiest way to disable it is to not add it at all. (Or the filter approach, if you want finer control). When using |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We have an ASP.Net Core 9 web application that uses the OTEL packages to export traces to Azure Monitor/Application Insights.
We only need to import the web api logs, we don't need any dependency tracking or metrics.
Here is the setup code:
The last part of the code removes that dependency tracking from the Cosmos Db SDK.
But we still get these ManagedIdentityCredential.GetToken dependecy calls from services that use Managed Identity (CosmosDb and/or Azure Monitor).
Any idea how these could be removed?
In the "old" Application Insights SDK we could just set the EnableDependencyTrackingTelemetryModule to false.
I wish there was something as easy for the OTEL based SDK too.
Beta Was this translation helpful? Give feedback.
All reactions