Skip to content

Commit 3ff6ee6

Browse files
committed
namespace search fix
1 parent 6e521ae commit 3ff6ee6

File tree

1 file changed

+2
-1
lines changed
  • src/OpenTelemetry.AutoInstrumentation.Digma

1 file changed

+2
-1
lines changed

src/OpenTelemetry.AutoInstrumentation.Digma/Plugin.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ private void ProcessAssembly(Assembly assembly)
9595

9696
private bool ShouldInstrumentAssembly(string assemblyName)
9797
{
98-
return _namespaces.Any(ns => ns.StartsWith(assemblyName, StringComparison.OrdinalIgnoreCase));
98+
return _namespaces.Any(ns => ns.StartsWith(assemblyName, StringComparison.OrdinalIgnoreCase) ||
99+
assemblyName.StartsWith(ns, StringComparison.OrdinalIgnoreCase));
99100
}
100101

101102
private bool ShouldInstrumentType(Type type)

0 commit comments

Comments
 (0)