Search historical hosted-agent logs by time, severity, and text

Đang mở
#10,922 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
azure, github, go
Lĩnh vực
cli, observability

Hướng nghiên cứu

Read the released monitor implementation at cli/azd/extensions/azure.ai.agents/internal/cmd/monitor.go and the linked hosted-agent tracing setup to understand current log sources and permissions. The issue says an experience spec must first settle command placement, filter semantics, output, and data sources, so implementation needs design work before a code entry point is clear. Done means the specified workflow covers retained data limits, filtering, isolation, output, failures, help, and examples.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area/telemetry enhancement ext-agents ext-foundry

Customer problem

An operator needs to answer questions such as "Which errors occurred for this deployed agent in the last hour?" or "Where did this timeout appear across sessions?" They should not need the original application checkout, a live session, or a hand-written telemetry query for these common investigations.

Current behavior

In released azure.ai.agents 1.1.0, azd ai agent monitor targets one hosted-agent session and supports console/system selection, a trailing line count of 1-300, and following new entries. It has no time-window, severity, or search-pattern filters.

Existing example:

azd ai agent monitor support --session-id "<session-id>" --type console --tail 100

Azure CLI and Application Insights/KQL can query retained application telemetry today. That workaround requires identifying the telemetry resource, applying the right agent filter, and carrying context between tools. Application Insights application logs are not guaranteed to contain every hosted-agent console line or system event.

Requested experience

Add an agent-scoped historical log-query workflow to the Agents extension, using available retained telemetry rather than treating a live session tail as a historical search.

Illustrative command shape, not an available command:

azd ai agent logs query --project-endpoint "$Project" --agent-name support --since 1h --level error --output json --no-prompt

The experience spec should settle command placement, time and text-filter semantics, output, and supported data sources before implementation.

Acceptance criteria

  • Query a bounded relative or absolute time window for a known remote agent, with severity and text filtering and optional version/session narrowing where the data supports them.
  • Support investigations across retained sessions without requiring azure.yaml or a currently running session.
  • Carry the selected Foundry project and deployed-agent context into the query. Resolve connected telemetry where possible and provide explicit, actionable guidance when extra configuration is needed.
  • Identify supported retained data sources and coverage. Do not assume the Application Insights traces table contains all console/system logs or promise reconstruction of data that was never collected.
  • Distinguish no matching records from missing telemetry configuration, unsupported data sources, and access failures. Explain relevant retention/sampling limits.
  • Provide useful terminal output and stable JSON with timestamps and available agent/session/trace correlation. Define result limits and pagination.
  • Preserve current monitor/follow behavior, reject incompatible selectors, and cover cross-agent isolation, time/filter behavior, and non-interactive failures. Update help and examples.

Related work and evidence

Ngôn ngữ chính
Go
Star
573
Fork
387
Merge trung bình
2 ngày 20 giờ
Pull request đã merge (30 ngày)
196

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/azure-dev

Tất cả issue của Azure/azure-dev

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.