Projects\GuestRuntime.cs (7)
25private readonly ProfilingTelemetry _profilingTelemetry;
36public GuestRuntime(RuntimeSpec spec, ILogger logger, Func<string, string?> commandResolver, IEnvironment environment, ProfilingTelemetry profilingTelemetry, FileLoggerProvider? fileLoggerProvider = null)
196? ProfilingTelemetry.Values.GuestCommandPhaseWatchExecute
197: ProfilingTelemetry.Values.GuestCommandPhaseExecute;
236? ProfilingTelemetry.Values.GuestCommandPhasePublishExecute
237: ProfilingTelemetry.Values.GuestCommandPhaseExecute;
267using var activity = _profilingTelemetry.StartGuestExecuteCommand(_spec.Language, _spec.DisplayName, commandSpec.Command, args, directory, ProfilingTelemetry.Values.GuestCommandPhasePreExecute);
Projects\ProcessGuestLauncher.cs (11)
53AddEvent(activity, ProfilingTelemetry.Events.GuestProcessResolveStart);
57AddEvent(activity, ProfilingTelemetry.Events.GuestProcessResolveFailed);
66ProfilingTelemetry.SetProcessInvocation(activity, resolvedCommandPath, args);
67AddEvent(activity, ProfilingTelemetry.Events.GuestProcessResolved, TelemetryConstants.Tags.ProcessExecutablePath, resolvedCommandPath);
71ProfilingTelemetry.AddActivityContextToEnvironment(activity, effectiveEnvironmentVariables);
88AddEvent(activity, ProfilingTelemetry.Events.GuestFirstStdout, TelemetryConstants.Tags.ProcessPid, pid);
100AddEvent(activity, ProfilingTelemetry.Events.GuestFirstStderr, TelemetryConstants.Tags.ProcessPid, pid);
145AddEvent(activity, ProfilingTelemetry.Events.GuestProcessStart);
155AddEvent(activity, ProfilingTelemetry.Events.GuestProcessStarted, TelemetryConstants.Tags.ProcessPid, execution.ProcessId);
185AddEvent(activity, ProfilingTelemetry.Events.GuestProcessExited, TelemetryConstants.Tags.ProcessExitCode, finalExitCode);
201return activity?.Source.Name == ProfilingTelemetry.ActivitySourceName ? activity : null;