Update telemetry (#1355)

* Track "pause-logging"

* Bump release version
This commit is contained in:
Ferenc Hammerl
2021-09-20 15:54:20 +02:00
committed by GitHub
parent ecfc2cc9e9
commit 43fa351980
2 changed files with 15 additions and 12 deletions

View File

@@ -111,7 +111,9 @@ namespace GitHub.Runner.Worker
context.Output(input);
context.Debug("Paused processing commands until '##[{actionCommand.Data}]' is received");
_stopToken = actionCommand.Data;
if (_registeredCommands.Contains(actionCommand.Data) || string.IsNullOrEmpty(actionCommand.Data))
if (_registeredCommands.Contains(actionCommand.Data)
|| string.IsNullOrEmpty(actionCommand.Data)
|| string.Equals(actionCommand.Data, "pause-logging", StringComparison.OrdinalIgnoreCase))
{
var telemetry = new JobTelemetry
{
@@ -155,7 +157,8 @@ namespace GitHub.Runner.Worker
return true;
}
internal static bool EnhancedAnnotationsEnabled(IExecutionContext context) {
internal static bool EnhancedAnnotationsEnabled(IExecutionContext context)
{
return context.Global.Variables.GetBoolean("DistributedTask.EnhancedAnnotations") ?? false;
}
}

View File

@@ -1 +1 @@
2.283.0
2.283.1