Skip to content

Commit e83e930

Browse files
authored
Merge pull request #31 from digma-ai/fix
namespace search fix
2 parents 6e521ae + 3ff6ee6 commit e83e930

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)