Skip to content

Commit

Permalink
More hacks to get nested project information in the trace
Browse files Browse the repository at this point in the history
  • Loading branch information
safesparrow committed Aug 31, 2022
1 parent 16fcfd4 commit 0702fc1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Compiler/Service/service.fs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,11 @@ type BackgroundCompiler
member x.EvaluateRawContents() =
node {
Trace.TraceInformation("FCS: {0}.{1} ({2})", userOpName, "GetAssemblyData", nm)
return! self.GetAssemblyData(opts, userOpName + ".CheckReferencedProject(" + nm + ")")
let act = Activity.activitySource.StartActivity("CheckReferencedProject")
act.AddTag("Project", nm) |> ignore
let! x = self.GetAssemblyData(opts, userOpName + ".CheckReferencedProject(" + nm + ")")
act.Dispose()
return x
}

member x.TryGetLogicalTimeStamp(cache) =
Expand Down

0 comments on commit 0702fc1

Please sign in to comment.