AI 에이전트 트레이스 계측 구현 노력 감소를 위한 OpenInference 호환 행위 수준 모델 및 프레임워크An OpenInference-Compatible Behavior-Level Model and Framework for Reducing AI Agent Trace Instrumentation Effort
AI 에이전트 시스템의 실행을 표준 트레이스로 계측하려면 span 생성, 부모-자식 관계, 의미 속성 및 메타데이터를 직접 작성해야 한다. OpenTelemetry와 OpenInference는 표준 트레이스 형식을 제공하지만, Agent, Trace, Task와 같은 에이전트 행위 수준의 개념을 직접 계측하는 API를 제공하지 않는다. 이로 인해 표준 호환 에이전트 트레이스를 작성할 때 계측 코드와 명시적으로 전달해야 하는 정보량이 증가한다. 본 논문은 계측 부담을 줄이기 위한 Agent Behavior Trace(ABT) 모델과 프레임워크를 제안한다. ABT 모델은 하나의 요청 처리 맥락을 Agent와 Trace로, 주요 처리 목적과 논리적 범위를 Task와 Block으로, 대규모 언어 모델(Large Language Model, LLM) 호출·도구 실행·검색·검증과 같은 실제 동작을 TraceAction으로 표현한다. ABT 프레임워크는 이러한 행위 수준 표현을 OpenInference 및 OpenTelemetry 호환 트레이스로 변환하여, 개발자가 직접 작성해야 하는 계측 코드와 계측 API에 명시적으로 전달해야 하는 정보량을 줄인다. Customer Support Agent, Open Deep Research, SWE-agent Core Execution을 대상으로 ABT 계측과 직접 OpenInference/OpenTelemetry 계측을 비교하였다. 모든 평가 시나리오에서 두 방식의 트레이스 산출물은 동일한 span 구조와 의미 속성 키를 보였고, ABT 방식의 계측 코드 행 수(lines of code, LOC)는 직접 계측의 43.0–57.1%, 계측 API 인자 수는 29.3–54.1% 였다. 이 결과는 직접 계측과 동등한 표준 호환 트레이스를 유지하면서 에이전트 행위 트레이스의 계측 구현 노력을 줄일 수 있음을 보여준다.
Instrumenting an AI agent system with standards-compatible traces requires developers to explicitly create spans, establish parent-child relationships, and supply semantic attributes and metadata. While OpenTelemetry and OpenInference provide standardized trace formats, they lack APIs that directly instrument agent-behavior concepts such as Agent, Trace, and Task. As a result, direct instrumentation can increase both instrumentation code and the amount of trace-construction information that developers need to provide. This paper proposes the Agent Behavior Trace (ABT) model and framework to reduce this instrumentation effort. The ABT model represents a request-processing context with Agent and Trace, major processing objectives and logical scopes with Task and Block, and operations such as large language model (LLM) calls, tool execution, retrieval, and validation with TraceAction. The ABT Framework transforms this behavior-level representation into OpenInference- and OpenTelemetry-compatible traces, thereby reducing both the amount of instrumentation code developers must write and the information they must explicitly supply to instrumentation APIs. We compare ABT instrumentation with direct OpenInference/OpenTelemetry instrumentation for a Customer Support Agent, Open Deep Research, and SWE-agent Core Execution. In all evaluated scenarios, the two approaches produced equivalent trace structures and semantic-attribute keys. ABT instrumentation used 43.0% to 57.1% of the lines of code (LOC) required for direct instrumentation and 29.3% to 54.1% of the instrumentation API arguments. These results show that ABT can reduce the implementation effort required to instrument agent-behavior traces while preserving standards-compatible traces equivalent to those produced by direct instrumentation.