From eb5d398c26295dc92b9ccd74bf04fd134a97e9e0 Mon Sep 17 00:00:00 2001 From: Andrew Lock Date: Fri, 30 Jul 2021 09:49:27 +0100 Subject: [PATCH] Update profiler skipped assembly prefixes We need to instrument Microsoft.Extensions.Logging.Abstractions now, so can't skip the Microsoft.Extensions prefix This adds most of them to the skip list, but there may be a better approach, e.g. an additional "don't skip" list? --- .../dd_profiler_constants.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/Datadog.Trace.ClrProfiler.Native/dd_profiler_constants.h b/src/Datadog.Trace.ClrProfiler.Native/dd_profiler_constants.h index 35c02ff7136f..2972cd179633 100644 --- a/src/Datadog.Trace.ClrProfiler.Native/dd_profiler_constants.h +++ b/src/Datadog.Trace.ClrProfiler.Native/dd_profiler_constants.h @@ -39,7 +39,22 @@ const WSTRING skip_assembly_prefixes[]{ WStr("Microsoft.ApplicationInsights"), WStr("Microsoft.Build"), WStr("Microsoft.CSharp"), - WStr("Microsoft.Extensions"), + WStr("Microsoft.Extensions.Caching"), + WStr("Microsoft.Extensions.Configuration"), + WStr("Microsoft.Extensions.DependencyInjection"), + WStr("Microsoft.Extensions.DependencyModel"), + WStr("Microsoft.Extensions.Diagnostics"), + WStr("Microsoft.Extensions.FileProviders"), + WStr("Microsoft.Extensions.FileSystemGlobbing"), + WStr("Microsoft.Extensions.Hosting"), + WStr("Microsoft.Extensions.Http"), + WStr("Microsoft.Extensions.Identity"), + WStr("Microsoft.Extensions.Localization"), + WStr("Microsoft.Extensions.ObjectPool"), + WStr("Microsoft.Extensions.Options"), + WStr("Microsoft.Extensions.PlatformAbstractions"), + WStr("Microsoft.Extensions.Primitives"), + WStr("Microsoft.Extensions.WebEncoders "), WStr("Microsoft.Web.Compilation.Snapshots"), WStr("System.Core"), WStr("System.Console"),