Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions extensions/copilot/src/extension/prompt/node/chatMLFetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ export class ChatMLFetcherImpl extends AbstractChatMLFetcher {
source: telemetryProperties.messageSource ?? 'unknown',
requestId: ourRequestId,
model: chatEndpoint.model,
modelProvider: chatEndpoint.modelProvider,
apiType: chatEndpoint.apiType,
transport,
interactionType,
Expand Down Expand Up @@ -692,6 +693,7 @@ export class ChatMLFetcherImpl extends AbstractChatMLFetcher {
source: telemetryProperties.messageSource ?? 'unknown',
requestId: ourRequestId,
model: chatEndpoint.model,
modelProvider: chatEndpoint.modelProvider,
apiType: chatEndpoint.apiType,
transport,
interactionType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export interface IChatMLFetcherCancellationProperties {
source: string;
requestId: string;
model: string;
modelProvider: string | undefined;
apiType: string | undefined;
transport: string;
interactionType: string;
Expand Down Expand Up @@ -148,6 +149,7 @@ export class ChatMLFetcherTelemetrySender {
"requestKind": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "Resolved X-Interaction-Type for the request: 'conversation-agent', 'conversation-subagent', 'conversation-background', 'conversation-panel', 'conversation-inline', 'conversation-edits', 'conversation-other', 'conversation-notebook', or 'conversation-terminal'" },
"model": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "comment": "Model selection for the response" },
"modelInvoked": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "comment": "Actual model invoked for the response" },
"modelProvider": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "Provider/vendor backing the model (e.g. for BYOK: Ollama, Azure, Anthropic, Gemini, OpenAI, OpenRouter, xAI, CustomOAI). Lets BYOK requests be attributed by provider even when the raw model id is redacted." },
"apiType": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "comment": "API type for the response- chat completions or responses" },
"conversationId": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "Id for the current chat conversation." },
"requestId": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "comment": "Id of the current turn request" },
Expand Down Expand Up @@ -218,6 +220,7 @@ export class ChatMLFetcherTelemetrySender {
conversationId: baseTelemetry?.properties.conversationId,
model: chatEndpointInfo?.model,
modelInvoked: chatCompletion.model,
modelProvider: chatEndpointInfo?.modelProvider,
apiType: chatEndpointInfo?.apiType,
Comment on lines 220 to 224
requestId: chatCompletion.requestId.headerRequestId,
gitHubRequestId: chatCompletion.requestId.gitHubRequestId,
Expand Down Expand Up @@ -270,6 +273,7 @@ export class ChatMLFetcherTelemetrySender {
source,
requestId,
model,
modelProvider,
apiType,
transport,
interactionType,
Expand Down Expand Up @@ -305,6 +309,7 @@ export class ChatMLFetcherTelemetrySender {
"owner": "digitarald",
"comment": "Report canceled service responses for quality.",
"model": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "comment": "Model selection for the response" },
"modelProvider": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "Provider/vendor backing the model (e.g. for BYOK: Ollama, Azure, Anthropic, Gemini, OpenAI, OpenRouter, xAI, CustomOAI). Lets BYOK requests be attributed by provider even when the raw model id is redacted." },
"apiType": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "comment": "API type for the response- chat completions or responses" },
"source": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "comment": "Source for why the request was made" },
"requestKind": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "Resolved X-Interaction-Type for the request: 'conversation-agent', 'conversation-subagent', 'conversation-background', 'conversation-panel', 'conversation-inline', 'conversation-edits', 'conversation-other', 'conversation-notebook', or 'conversation-terminal'" },
Expand Down Expand Up @@ -357,6 +362,7 @@ export class ChatMLFetcherTelemetrySender {
source,
requestId,
model,
modelProvider,
requestKind: interactionType,
conversationId,
associatedRequestId,
Expand Down Expand Up @@ -416,6 +422,7 @@ export class ChatMLFetcherTelemetrySender {
"type": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "comment": "Type of issue" },
"reason": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "comment": "Reason of issue" },
"model": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "comment": "Model selection for the response" },
"modelProvider": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "Provider/vendor backing the model (e.g. for BYOK: Ollama, Azure, Anthropic, Gemini, OpenAI, OpenRouter, xAI, CustomOAI). Lets BYOK requests be attributed by provider even when the raw model id is redacted." },
"apiType": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "comment": "API type for the response- chat completions or responses" },
"source": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "comment": "Source for why the request was made" },
"requestKind": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "Resolved X-Interaction-Type for the request: 'conversation-agent', 'conversation-subagent', 'conversation-background', 'conversation-panel', 'conversation-inline', 'conversation-edits', 'conversation-other', 'conversation-notebook', or 'conversation-terminal'" },
Expand Down Expand Up @@ -474,6 +481,7 @@ export class ChatMLFetcherTelemetrySender {
requestId: processed.requestId,
gitHubRequestId: processed.serverRequestId,
model: chatEndpointInfo.model,
modelProvider: chatEndpointInfo.modelProvider,
apiType: chatEndpointInfo.apiType,
Comment on lines 481 to 485
conversationId: telemetryProperties?.conversationId,
reasoningEffort: requestBody.reasoning?.effort ?? requestBody.output_config?.effort,
Expand Down
Loading