You can configure IntelliTrace to ignore third-party libraries altogether by adding the package names of the third-party code to the trace-exclusions.txt file in the Applicare home directory. In most cases, you are not interested in the internal working of these third party libraries and excluding them from tracing will reduce the overhead significantly.
Open the trace-exclusions.txt file in a text editor and you can see that we have already added most of the common libraries such as the Spring framework and Apache Commons in this file. So if you see some third-party classes/methods in you IntelliTrace window that you are not concerned about, you should add the base package name of that library to trace-exclusions.txt in a new line.
For example, to disable tracing all classes in org.apache and its sub packages, you should add org.apache to trace-exclusions.txt.
Remember to copy the modified file to all agent Applicare directories on other machines. You will have to restart application servers for the changes to take effect.
Now you can use the modified file in the production Applicare installation to get the best performance while IntelliTrace is enabled. Furthermore, you can send the packages you want excluded to Arcturus so they will be included in the trace-exclusions.txt file by default in future versions.
Dotnet Agent:
For dotnet agent trace-exclusions.txt will exist in the path <DOTNET_AGENT_INSTALLED_DIRECTORY>\Profiler
Below are few packages which we should exclude from instrumentation:
Arcturus.Applicare.DotNetAgent.Core mscorlib System.Web System System.Web.ApplicationServices System.Configuration System.Core System.Xml System.Web.Extensions Microsoft.Build.Utilities.v4.0 System.Runtime.Caching Microsoft.JScript Microsoft.VisualStudio.Web.PageInspector.Loader Microsoft.VisualStudio.Web.PageInspector.Runtime Microsoft.VisualStudio.Web.PageInspector.Tracing Arcturus.Applicare.DotNetAgent.Agent log4net protobuf-net System.Runtime.Remoting System.Runtime.Serialization System.Private.CoreLib System.Runtime Microsoft.AspNetCore.Hosting.Abstractions netstandard Microsoft.AspNetCore Microsoft.Extensions.Configuration.Abstractions Microsoft.Extensions.DependencyInjection.Abstractions Microsoft.AspNetCore.Server.Kestrel.Core Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions Microsoft.AspNetCore.Server.Kestrel System.IO.FileSystem Microsoft.Extensions.Logging Microsoft.AspNetCore.Server.IISIntegration Microsoft.Extensions.DependencyInjection Microsoft.Extensions.Configuration Microsoft.Extensions.Configuration.CommandLine System.Runtime.Extensions Microsoft.Extensions.Hosting.Abstractions Microsoft.Extensions.FileProviders.Abstractions System.Collections Microsoft.Extensions.Configuration.EnvironmentVariables Microsoft.Extensions.Primitives System.Threading.Tasks System.Linq System.ComponentModel Microsoft.Extensions.Logging.Abstractions Microsoft.AspNetCore.Http.Features System.Console System.Diagnostics.DiagnosticSource Microsoft.Extensions.Configuration.FileExtensions Microsoft.AspNetCore.Http.Abstractions Microsoft.AspNetCore.Http Microsoft.Extensions.Options Microsoft.Extensions.ObjectPool Microsoft.AspNetCore.Mvc.Core Microsoft.AspNetCore.Razor.Runtime System.Resources.ResourceManager Microsoft.Extensions.FileProviders.Physical System.Runtime.InteropServices System.IO.FileSystem.Watcher System.ComponentModel.Primitives System.Collections.Concurrent Microsoft.Extensions.FileSystemGlobbing Microsoft.Extensions.Configuration.Json Microsoft.Extensions.Configuration.UserSecrets System.Threading System.Diagnostics.Tracing System.Threading.Overlapped Microsoft.Win32.Primitives Newtonsoft.Json System.Linq.Expressions System.ComponentModel.TypeConverter System.ObjectModel System.Runtime.Numerics System.Private.Uri Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets Microsoft.AspNetCore.Hosting.Server.Abstractions Microsoft.Extensions.Logging.Configuration Microsoft.Extensions.Logging.Console Microsoft.Extensions.Logging.Debug Microsoft.Extensions.Options.ConfigurationExtensions Microsoft.AspNetCore.HostFiltering Microsoft.AspNetCore.HttpOverrides Microsoft.AspNetCore.Authentication.Core Microsoft.AspNetCore.Authentication.Abstractions System.Security.Claims System.Threading.Thread Microsoft.Extensions.Configuration.Binder System.Runtime.InteropServices.RuntimeInformation Microsoft.AspNetCore.Mvc Microsoft.AspNetCore.Mvc.ApiExplorer Microsoft.AspNetCore.Mvc.ViewFeatures Microsoft.AspNetCore.Mvc.Razor Microsoft.AspNetCore.Razor Microsoft.AspNetCore.Mvc.RazorPages Microsoft.AspNetCore.Mvc.TagHelpers Microsoft.AspNetCore.Mvc.DataAnnotations Microsoft.AspNetCore.Mvc.Formatters.Json Microsoft.AspNetCore.Mvc.Cors Microsoft.AspNetCore.Mvc.Abstractions Microsoft.AspNetCore.Routing Microsoft.Extensions.DependencyModel System.Reflection System.AppContext System.IO.FileSystem.Primitives System.IO Microsoft.AspNetCore.Identity.UI.Views Microsoft.AspNetCore.Identity.UI Microsoft.AspNetCore.SpaServices Microsoft.AspNetCore.SpaServices.Extensions System.Buffers Microsoft.AspNetCore.Routing.Abstractions Microsoft.AspNetCore.Authorization Microsoft.AspNetCore.Authorization.Policy Microsoft.AspNetCore.DataProtection Microsoft.AspNetCore.Antiforgery Microsoft.Extensions.WebEncoders Microsoft.AspNetCore.Cryptography.Internal Microsoft.AspNetCore.DataProtection.Abstractions System.Text.Encodings.Web Microsoft.CodeAnalysis.Razor Microsoft.AspNetCore.Razor.Language Microsoft.CodeAnalysis Microsoft.AspNetCore.Mvc.Razor.Extensions Microsoft.Extensions.Caching.Abstractions Microsoft.Extensions.Caching.Memory Microsoft.AspNetCore.Cors System.IO.Pipelines System.Net.Primitives Microsoft.AspNetCore.Connections.Abstractions Microsoft.Net.Http.Headers System.Runtime.CompilerServices.Unsafe Microsoft.Win32.Registry System.Memory System.Security.Principal.Windows System.Security.Principal System.Xml.XDocument System.Private.Xml.Linq System.Private.Xml System.Diagnostics.Debug System.Text.Encoding.Extensions System.Security.Cryptography.Algorithms System.Text.RegularExpressions System.Reflection.Emit.ILGeneration System.Reflection.Emit.Lightweight System.Reflection.Primitives Microsoft.AspNetCore.HttpsPolicy Microsoft.AspNetCore.Diagnostics Microsoft.Extensions.Localization.Abstractions Microsoft.AspNetCore.JsonPatch System.Collections.Specialized System.Drawing.Primitives Microsoft.Extensions.FileProviders.Composite System.Collections.Immutable System.Security.Cryptography.Primitives System.Runtime.Serialization.Formatters System.Diagnostics.TraceSource System.Security.Cryptography.X509Certificates System.Threading.Timer System.Net.Sockets System.Net.NameResolution Anonymously Hosted DynamicMethods Assembly System.Threading.ThreadPool System.Numerics.Vectors Microsoft.AspNetCore.Http.Extensions Microsoft.AspNetCore.StaticFiles Microsoft.AspNetCore.Authentication.Cookies Microsoft.AspNetCore.Authentication Microsoft.Extensions.Identity.Core Microsoft.AspNetCore.Identity System.Net.Http System.Net.WebSockets Microsoft.AspNetCore.Html.Abstractions Microsoft.CodeAnalysis.CSharp Microsoft.AspNetCore.Diagnostics.Abstractions System.ComponentModel.Annotations System.Threading.Tasks.Extensions System.Net.WebClient System.ComponentModel.EventBasedAsync System.Net.Requests System.Net.WebHeaderCollection System.Net.Security System.Collections.NonGeneric System.Net.ServicePoint System.Net.NetworkInformation Microsoft.AspNetCore.WebUtilities System.Runtime.Serialization.Primitives System.Data.Common System.Xml.ReaderWriter
We can view/edit the instrumentation package details from Configure Dynamic Instrumentation screen also.
[Screenshot 1 is not available on this page.]