40 references to AgentTelemetryProtocol
aspire (40)
Agents\ClaudeCode\ClaudeCodeAgentClient.cs (8)
180
var (command, args) = AgentTelemetryHook.GetCommand(
AgentTelemetryProtocol
.HookOptionName);
249
var (currentCommand, _) = AgentTelemetryHook.GetCommand(
AgentTelemetryProtocol
.HookOptionName);
253
&& values is [
AgentTelemetryProtocol
.AgentCommandName,
AgentTelemetryProtocol
.TelemetryCommandName,
AgentTelemetryProtocol
.HookOptionName]
256
&& values is [var assemblyPath,
AgentTelemetryProtocol
.AgentCommandName,
AgentTelemetryProtocol
.TelemetryCommandName,
AgentTelemetryProtocol
.HookOptionName]
Agents\Copilot\CopilotAgentClient.cs (1)
127
var (command, args) = AgentTelemetryHook.GetCommand(
AgentTelemetryProtocol
.HookOptionName);
Agents\Hooks\AgentTelemetryHook.cs (16)
29
string[] args = [
AgentTelemetryProtocol
.AgentCommandName,
AgentTelemetryProtocol
.TelemetryCommandName, mode];
135
trackedEvent = (
AgentTelemetryProtocol
.SkillInvocationEventType,
AgentTelemetryProtocol
.SkillNameOptionName, skill);
156
trackedEvent = (
AgentTelemetryProtocol
.SkillInvocationEventType,
AgentTelemetryProtocol
.SkillNameOptionName, skill);
160
trackedEvent = (
AgentTelemetryProtocol
.ReferenceFileReadEventType,
AgentTelemetryProtocol
.FileReferenceOptionName, relativePath);
172
trackedEvent = (
AgentTelemetryProtocol
.ToolInvocationEventType,
AgentTelemetryProtocol
.ToolNameOptionName, tool);
195
AgentTelemetryProtocol
.AgentCommandName,
AgentTelemetryProtocol
.TelemetryCommandName,
196
AgentTelemetryProtocol
.EventTypeOptionName, telemetryEvent.EventType,
197
AgentTelemetryProtocol
.ClientNameOptionName, client,
198
AgentTelemetryProtocol
.TimestampOptionName, DateTimeOffset.UtcNow.ToString("yyyy-MM-ddTHH:mm:ssZ", CultureInfo.InvariantCulture),
204
args.AddRange([
AgentTelemetryProtocol
.SessionIdOptionName, session]);
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)
40
var (command, args) = AgentTelemetryHook.GetCommand(
AgentTelemetryProtocol
.DrainOptionName);