Skip to content

Commit 0702fc1

Browse files
committed
More hacks to get nested project information in the trace
1 parent 16fcfd4 commit 0702fc1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Compiler/Service/service.fs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,11 @@ type BackgroundCompiler
343343
member x.EvaluateRawContents() =
344344
node {
345345
Trace.TraceInformation("FCS: {0}.{1} ({2})", userOpName, "GetAssemblyData", nm)
346-
return! self.GetAssemblyData(opts, userOpName + ".CheckReferencedProject(" + nm + ")")
346+
let act = Activity.activitySource.StartActivity("CheckReferencedProject")
347+
act.AddTag("Project", nm) |> ignore
348+
let! x = self.GetAssemblyData(opts, userOpName + ".CheckReferencedProject(" + nm + ")")
349+
act.Dispose()
350+
return x
347351
}
348352

349353
member x.TryGetLogicalTimeStamp(cache) =

0 commit comments

Comments
 (0)