40 references to AgentTelemetryProtocol
aspire (40)
Agents\Hooks\AgentTelemetryHook.cs (16)
27
string[] args = [
AgentTelemetryProtocol
.AgentCommandName,
AgentTelemetryProtocol
.TelemetryCommandName, mode];
133
trackedEvent = (
AgentTelemetryProtocol
.SkillInvocationEventType,
AgentTelemetryProtocol
.SkillNameOptionName, skill);
154
trackedEvent = (
AgentTelemetryProtocol
.SkillInvocationEventType,
AgentTelemetryProtocol
.SkillNameOptionName, skill);
158
trackedEvent = (
AgentTelemetryProtocol
.ReferenceFileReadEventType,
AgentTelemetryProtocol
.FileReferenceOptionName, relativePath);
170
trackedEvent = (
AgentTelemetryProtocol
.ToolInvocationEventType,
AgentTelemetryProtocol
.ToolNameOptionName, tool);
187
AgentTelemetryProtocol
.AgentCommandName,
AgentTelemetryProtocol
.TelemetryCommandName,
188
AgentTelemetryProtocol
.EventTypeOptionName, telemetryEvent.EventType,
189
AgentTelemetryProtocol
.ClientNameOptionName, client,
190
AgentTelemetryProtocol
.TimestampOptionName, DateTimeOffset.UtcNow.ToString("yyyy-MM-ddTHH:mm:ssZ", CultureInfo.InvariantCulture),
196
args.AddRange([
AgentTelemetryProtocol
.SessionIdOptionName, session]);
Agents\Hooks\TelemetryHookConfigurator.cs (9)
137
var (command, args) = AgentTelemetryHook.GetCommand(
AgentTelemetryProtocol
.HookOptionName);
255
var (command, args) = AgentTelemetryHook.GetCommand(
AgentTelemetryProtocol
.HookOptionName);
341
var (currentCommand, _) = AgentTelemetryHook.GetCommand(
AgentTelemetryProtocol
.HookOptionName);
344
if ((values is [
AgentTelemetryProtocol
.AgentCommandName,
AgentTelemetryProtocol
.TelemetryCommandName,
AgentTelemetryProtocol
.HookOptionName] && !isDotnet
346
|| (values is [var assemblyPath,
AgentTelemetryProtocol
.AgentCommandName,
AgentTelemetryProtocol
.TelemetryCommandName,
AgentTelemetryProtocol
.HookOptionName] && isDotnet
Commands\AgentCommand.cs (1)
21
: base(
AgentTelemetryProtocol
.AgentCommandName, AgentCommandStrings.Description, services)
Commands\AgentTelemetryCommand.cs (13)
40
private readonly Option<bool> _hookOption = new(
AgentTelemetryProtocol
.HookOptionName) { Hidden = true };
41
private readonly Option<bool> _drainOption = new(
AgentTelemetryProtocol
.DrainOptionName) { Hidden = true };
52
AgentTelemetryProtocol
.SkillInvocationEventType,
53
AgentTelemetryProtocol
.ToolInvocationEventType,
54
AgentTelemetryProtocol
.ReferenceFileReadEventType
57
private readonly Option<string?> _eventTypeOption = new(
AgentTelemetryProtocol
.EventTypeOptionName)
62
private readonly Option<string?> _clientNameOption = new(
AgentTelemetryProtocol
.ClientNameOptionName)
67
private readonly Option<string?> _sessionIdOption = new(
AgentTelemetryProtocol
.SessionIdOptionName)
72
private readonly Option<string?> _skillNameOption = new(
AgentTelemetryProtocol
.SkillNameOptionName)
77
private readonly Option<string?> _toolNameOption = new(
AgentTelemetryProtocol
.ToolNameOptionName)
82
private readonly Option<string?> _fileReferenceOption = new(
AgentTelemetryProtocol
.FileReferenceOptionName)
87
private readonly Option<string?> _timestampOption = new(
AgentTelemetryProtocol
.TimestampOptionName)
94
: base(
AgentTelemetryProtocol
.TelemetryCommandName, AgentCommandStrings.AgentTelemetryCommand_Description, services)
Telemetry\AgentTelemetryUploader.cs (1)
42
var (command, args) = AgentTelemetryHook.GetCommand(
AgentTelemetryProtocol
.DrainOptionName);