Skip to content

feat: feat: add observability for sessions, tools, and agent execution (#11)#31

Merged
smallnest merged 2 commits into
masterfrom
feature/issue-11
Apr 18, 2026
Merged

feat: feat: add observability for sessions, tools, and agent execution (#11)#31
smallnest merged 2 commits into
masterfrom
feature/issue-11

Conversation

@smallnest
Copy link
Copy Markdown
Owner

Summary

Test plan

  • All tests pass
  • Code review completed with score >= 85

Closes #11

chaoyuepan added 2 commits April 18, 2026 15:32
Add metrics collection and structured logging via a new internal/metrics
package. All observability is log-based with no external tracing dependencies.

New metrics:
- session.created, session.active_count, session.prompt_latency
- request.total, request.latency, request.errors
- tool.call_count, tool.call_duration, tool.call_errors
- permission.denials
- agent.exec_duration, agent.exec_failures
- output.size_bytes
- job.submitted/completed/failed/duration
- ws.active_connections/subscribers, ws.dropped_subscribers

Structured event logs for: session.prompt, session.result, session.error,
tool.start, tool.end, job.failed, permission.denied
…ls, and agent execution

Implemented by autoresearch with score 86/100 after 7 iterations.

Closes #11
@smallnest smallnest merged commit 02370e9 into master Apr 18, 2026
@smallnest smallnest deleted the feature/issue-11 branch April 18, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add observability for sessions, tools, and agent execution

1 participant