Skip to content

Commit a2ce5b0

Browse files
committed
activities for tool execution
1 parent ce047eb commit a2ce5b0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Cli/dotnet/Commands/Tool/Execute/ToolExecuteCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ public override int Execute()
129129

130130
var commandSpec = ToolCommandSpecCreator.CreateToolCommandSpec(toolPackage.Command.Name.Value, toolPackage.Command.Executable.Value, toolPackage.Command.Runner, _allowRollForward, _forwardArguments);
131131
var command = CommandFactoryUsingResolver.Create(commandSpec);
132+
using var _ = Activities.s_source.StartActivity("execute-inline-tool");
132133
var result = command.Execute();
133134
return result.ExitCode;
134135
}

src/Cli/dotnet/Commands/Tool/Run/ToolRunCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public override int Execute()
3232
}
3333
public static int ExecuteCommand(LocalToolsCommandResolver commandResolver, string toolCommandName, IEnumerable<string> argumentsToForward, bool allowRollForward)
3434
{
35+
using var _ = Activities.s_source.StartActivity("execute-local-tool");
3536
CommandSpec commandSpec = commandResolver.ResolveStrict(new CommandResolverArguments()
3637
{
3738
// since LocalToolsCommandResolver is a resolver, and all resolver input have dotnet-

0 commit comments

Comments
 (0)