Skip to content

Commit 5e300de

Browse files
committed
Update test
1 parent dd14c49 commit 5e300de

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tracer/test/Datadog.Trace.Tools.dd_dotnet.ArtifactTests/CreatedumpTests.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,9 +630,15 @@ void ValidateStacktrace(JToken callstack)
630630

631631
foreach (var frame in frames)
632632
{
633-
var moduleName = frame["function"].Value<string>().Split('!').First();
633+
string moduleName = null;
634634

635-
if (moduleName.Length > 0 && !moduleName.StartsWith("<") && Path.IsPathRooted(moduleName))
635+
// we do not set the path for managed assemblies.
636+
if (frame.ContainsKey("path"))
637+
{
638+
moduleName = frame["path"].Value<string>();
639+
}
640+
641+
if (!string.IsNullOrEmpty(moduleName) && !moduleName.StartsWith("<") && Path.IsPathRooted(moduleName))
636642
{
637643
if (!validatedModules.Add(moduleName))
638644
{

0 commit comments

Comments
 (0)