Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ export class ChatMLFetcherImpl extends AbstractChatMLFetcher {

const baseTelemetry = TelemetryData.createAndMarkAsIssued({
...telemetryProperties,
...(conversationId ? { conversationId } : {}),
headerRequestId: ourRequestId,
baseModel: chatEndpoint.model,
uiKind: ChatLocation.toString(location)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export class ChatMLFetcherTelemetrySender {
"model": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "comment": "Model selection for the response" },
"modelInvoked": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "comment": "Actual model invoked for the response" },
"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" },
"gitHubRequestId": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "comment": "GitHub request id if available" },
"associatedRequestId": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "Another request ID that this request is associated with (eg, the originating request of a summarization request)." },
Expand Down Expand Up @@ -151,6 +152,7 @@ export class ChatMLFetcherTelemetrySender {
filterReason: chatCompletion.filterReason,
source: baseTelemetry?.properties.messageSource ?? 'unknown',
initiatorType: userInitiatedRequest ? 'user' : 'agent',
conversationId: baseTelemetry?.properties.conversationId,
model: chatEndpointInfo?.model,
modelInvoked: chatCompletion.model,
apiType: chatEndpointInfo?.apiType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ export abstract class ChatTelemetry<C extends IDocumentContext | undefined = IDo
const toolCallProperties = {
intentId: this._intent.id,
conversationId: this._conversation.sessionId,
requestId: this.telemetryMessageId,
responseType,
toolCounts: JSON.stringify(toolCounts),
model: this._endpoint.model
Expand All @@ -532,6 +533,7 @@ export abstract class ChatTelemetry<C extends IDocumentContext | undefined = IDo
"comment": "Records information about tool calls during a request.",
"intentId": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "Id for the invoked intent." },
"conversationId": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "Id for the current chat conversation." },
"requestId": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "Id for the current turn request." },
"numRequests": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "comment": "The total number of requests made" },
"turnIndex": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "comment": "The conversation turn index" },
"toolCounts": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": false, "comment": "The number of times each tool was used" },
Expand Down
Loading