fix(management): FlowDebugRunner trace sinks use the collector's low-priority lane for ScriptLog rows (build fix after Task 2's Add(lowPriority:))
This commit is contained in:
@@ -152,7 +152,9 @@ public sealed class FlowDebugRunner
|
|||||||
// only known once the script runs. So the operator's scope is pushed into the
|
// only known once the script runs. So the operator's scope is pushed into the
|
||||||
// RouteHelper and enforced at route time, before any site traffic.
|
// RouteHelper and enforced at route time, before any site traffic.
|
||||||
var scope = await ResolvePermittedSiteIdentifiersAsync(sp, user, ct).ConfigureAwait(false);
|
var scope = await ResolvePermittedSiteIdentifiersAsync(sp, user, ct).ConfigureAwait(false);
|
||||||
var route = sp.GetRequiredService<RouteHelper>().WithTraceSink(collector.Add).WithSiteScope(scope);
|
var route = sp.GetRequiredService<RouteHelper>().WithTraceSink(evt => collector.Add(evt, lowPriority: FlowStepProjector.IsLogLine(evt))).WithSiteScope(scope);
|
||||||
|
// Step-logs D7: a ScriptLog row rides the collector's low-priority lane so the step rows
|
||||||
|
// emitted at run end are never crowded out of the inline copy (Replay stays complete).
|
||||||
var executor = sp.GetRequiredService<InboundScriptExecutor>();
|
var executor = sp.GetRequiredService<InboundScriptExecutor>();
|
||||||
|
|
||||||
InboundScriptResult result;
|
InboundScriptResult result;
|
||||||
@@ -358,7 +360,7 @@ public sealed class FlowDebugRunner
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
collector.Add(e);
|
collector.Add(e, lowPriority: FlowStepProjector.IsLogLine(e));
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user