ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { CopilotChatAttr, type EditOutcome, type EditSource, GenAiAttr, StdAttr } from './genAiAttributes';
import type { IOTelService } from './otelService';
/**
* Pre-configured OTel GenAI metric instruments.
* All methods are static to avoid per-call allocations (aligned with gemini-cli pattern).
*/
export class GenAiMetrics {
// ── GenAI Convention Metrics ──
static recordOperationDuration(
otel: IOTelService,
durationSec: number,
attrs: {
operationName: string;
providerName: string;
requestModel:
responseModel
serverAddress
serverPort
errorType
otel durationSec
GenAiAttr attrsoperationName
GenAiAttr attrsproviderName
GenAiAttr attrsrequestModel
attrsresponseModel GenAiAttr attrsresponseModel
attrsserverAddress StdAttr attrsserverAddress
attrsserverPort StdAttr attrsserverPort
attrserrorType StdAttr attrserrorType
otel IOTelService
tokenCount
tokenType
attrs
operationName
providerName
requestModel
responseModel
serverAddress
otel tokenCount
GenAiAttr attrsoperationName
GenAiAttr attrsproviderName
GenAiAttr tokenType
GenAiAttr attrsrequestModel
attrsresponseModel GenAiAttr attrsresponseModel
attrsserverAddress StdAttr attrsserverAddress
otel IOTelService toolName success
otel
GenAiAttr toolName
success
otel IOTelService toolName durationMs
otel durationMs
GenAiAttr toolName
otel IOTelService agentName durationSec
otel durationSec
GenAiAttr agentName
otel IOTelService agentName turnCount
otel turnCount
GenAiAttr agentName
otel IOTelService model ttftSec
otel ttftSec
GenAiAttr model
otel IOTelService
ttfcSec
attrs
operationName
providerName
requestModel
responseModel
otel ttfcSec
GenAiAttr attrsoperationName
GenAiAttr attrsproviderName
GenAiAttr attrsrequestModel
attrsresponseModel GenAiAttr attrsresponseModel
otel IOTelService
interChunkSec
attrs
operationName
providerName
requestModel
responseModel
otel interChunkSec
GenAiAttr attrsoperationName
GenAiAttr attrsproviderName
GenAiAttr attrsrequestModel
attrsresponseModel GenAiAttr attrsresponseModel
otel IOTelService
otel
otel IOTelService source EditSource outcome EditOutcome languageId
otel
CopilotChatAttr source
CopilotChatAttr outcome
languageId CopilotChatAttr languageId
otel IOTelService source EditSource outcome EditOutcome languageId hasRemainingEdits
otel
CopilotChatAttr source
CopilotChatAttr outcome
languageId CopilotChatAttr languageId
hasRemainingEdits CopilotChatAttr hasRemainingEdits
otel IOTelService source EditSource score timeDelayMs
otel score
CopilotChatAttr source
CopilotChatAttr timeDelayMs
otel IOTelService source EditSource score timeDelayMs
otel score
CopilotChatAttr source
CopilotChatAttr timeDelayMs
otel IOTelService type languageId count
otel count
type
languageId CopilotChatAttr languageId
otel IOTelService action
otel
action
otel IOTelService rating
otel
rating
otel IOTelService outcome
otel
outcome
otel IOTelService outcome
otel
outcome
otel IOTelService
otel
otel IOTelService partnerAgent
otel
partnerAgent
otel IOTelService operation success durationMs
otel
operation
success
durationMs
otel durationMs
operation
otel IOTelService operation errorType
otel
operation
StdAttr errorType