From 9d91ffccbc6428b6e0efcc27f5b1ac3dff8edcc7 Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Mon, 12 Aug 2024 10:27:21 +0200 Subject: [PATCH] Fix #2410 ensure we skip instrumentation of System.Web (#2411) --- src/profiler/elastic_apm_profiler/src/profiler/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/profiler/elastic_apm_profiler/src/profiler/mod.rs b/src/profiler/elastic_apm_profiler/src/profiler/mod.rs index dcbd200b3..21c4beb96 100644 --- a/src/profiler/elastic_apm_profiler/src/profiler/mod.rs +++ b/src/profiler/elastic_apm_profiler/src/profiler/mod.rs @@ -58,7 +58,7 @@ pub mod sig; mod startup_hook; pub mod types; -const SKIP_ASSEMBLY_PREFIXES: [&str; 22] = [ +const SKIP_ASSEMBLY_PREFIXES: [&str; 23] = [ "Elastic.Apm", "MessagePack", "Microsoft.AI", @@ -80,6 +80,7 @@ const SKIP_ASSEMBLY_PREFIXES: [&str; 22] = [ "System.Text", "System.Threading", "System.Xml", + "System.Web", "Newtonsoft", ]; const SKIP_ASSEMBLIES: [&str; 7] = [ @@ -89,7 +90,7 @@ const SKIP_ASSEMBLIES: [&str; 7] = [ "Microsoft.AspNetCore.Razor.Language", "Microsoft.AspNetCore.Mvc.RazorPages", "Anonymously Hosted DynamicMethods Assembly", - "ISymWrapper", + "ISymWrapper" ]; /// The git hash defined on build