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 { describe, expect, it } from 'vitest';
import { CopilotChatAttr, GenAiAttr, GenAiOperationName, GenAiProviderName } from '../genAiAttributes';
import { emitAgentTurnEvent, emitSessionStartEvent } from '../genAiEvents';
import { GenAiMetrics } from '../genAiMetrics';
import { SpanKind, SpanStatusCode } from '../otelService';
import { CapturingOTelService } from './capturingOTelService';
/**
* Verifies that the OTel instrumentation produces the correct span hierarchy,
* metric recordings, and event emissions for a complete agent interaction.
*
* Span hierarchy (expected):
* invoke_agent copilot [INTERNAL]
* ├── chat gpt-4o [CLIENT]
* ├── execute_tool readFile [INTERNAL]
* └── chat gpt-4o [CLIENT]
*
* Subagent trace propagation (via storeTraceContext/getStoredTraceContext):
* invoke_agent copilot
* ├── execute_tool runSubagent
* │ └── invoke_agent Explore (same traceId via parentTraceContext)
*/
otel
otel
kind SpanKind
attributes
GenAiAttr GenAiOperationName
GenAiAttr GenAiProviderName
GenAiAttr
GenAiAttr
agentSpan
chatSpan otel
kind SpanKind
attributes
GenAiAttr GenAiOperationName
GenAiAttr
chatSpan
GenAiAttr
GenAiAttr
GenAiAttr
chatSpanSpanStatusCode
chatSpan
toolSpan otel
kind SpanKind
attributes
GenAiAttr GenAiOperationName
GenAiAttr
toolSpanSpanStatusCode
toolSpan
chat2 otel
kind SpanKind
attributes
GenAiAttr GenAiOperationName
GenAiAttr
chat2SpanStatusCode
chat2
agentSpanSpanStatusCode
otelspans
agentSpan otelspans
agentSpanname
agentSpankindSpanKind
agentSpanattributesGenAiAttr
agentSpanattributesGenAiAttr
agentSpanstatusCodeSpanStatusCode
agentSpanended
chatSpan otelspans
chatSpanname
chatSpankindSpanKind
chatSpanattributesGenAiAttr
chatSpanattributesGenAiAttr
toolSpan otelspans
toolSpanname
toolSpankindSpanKind
toolSpanattributesGenAiAttr
otelspansname
otel
otel
GenAiMetricsotel
GenAiMetricsotel
GenAiMetricsotel
otel
otellogRecords
otellogRecordsattributes
otellogRecordsattributes
otellogRecordsattributes
otelcounters
otelcountersname
otelmetrics
otelmetricsname
otelmetricsname
otel
parentCtx traceId spanId
otel parentCtx
restored otel
restoredparentCtx
otel
kind SpanKind
attributes GenAiAttr GenAiOperationName
parentTraceContext restored
subagentSpan otelspans
subagentSpanname
subagentSpanparentTraceContextparentCtx
otel
otel
otel kind SpanKind attributes span
spanSpanStatusCode
span
span
span otelspans
spanstatusCodeSpanStatusCode
spanstatusMessage
spanattributes
spanexceptions
spanended
otel
GenAiMetricsotel
GenAiMetricsotel
GenAiMetricsotel
GenAiMetricsotel
otelcounters
otelcountersattributesGenAiAttr
otelcountersattributessuccess
otelcountersattributessuccess
otelmetrics
otelmetricsvalue
otelmetricsvalue
otel
GenAiMetricsotel
operationName GenAiOperationName
providerName GenAiProviderName
requestModel
GenAiMetricsotel
operationName GenAiOperationName
providerName GenAiProviderName
requestModel
GenAiMetricsotel
operationName GenAiOperationName
providerName GenAiProviderName
requestModel
otelmetrics
otelmetricsname
otelmetricsvalue
otelmetricsname
otelmetricsvalue
otelmetricsname
otelmetricsvalue
otel
GenAiMetricsotel
GenAiMetricsotel
GenAiMetricsotel
GenAiMetricsotel
GenAiMetricsotel
otelcounters
otelcountersname
otelcountersattributesCopilotChatAttr
otelcountersattributesCopilotChatAttr
otelcountersattributesCopilotChatAttr
otelcountersname
otelcountersattributesCopilotChatAttr
otelcountersname
otelcountersattributesCopilotChatAttr
otelcountersattributesCopilotChatAttr
otelcountersattributesCopilotChatAttr
otelmetrics
otelmetricsname
otelmetricsvalue
otelmetricsattributesCopilotChatAttr
otelmetricsattributesCopilotChatAttr
otelmetricsname
otelmetricsvalue
otel
GenAiMetricsotel
GenAiMetricsotel
otelcountersattributesCopilotChatAttr
otelcountersattributesCopilotChatAttr
otelcountersattributesCopilotChatAttr