Skip to content

Improve logging, add observability#79

Closed
khuisman wants to merge 1 commit into
xing5:mainfrom
khuisman:upstream-observability
Closed

Improve logging, add observability#79
khuisman wants to merge 1 commit into
xing5:mainfrom
khuisman:upstream-observability

Conversation

@khuisman
Copy link
Copy Markdown

Adds the following:

  • Per-tool timings
  • Standardize logging for format and level control
  • DEBUG flag to show/hide tool logging
  • Suppression of noisy logs from other libraries

…he fix

- Structured logging via logging.basicConfig; DEBUG env var enables verbose output
  with a direct handler that survives uvicorn's dictConfig override
- Suppress sse_starlette keepalive ping noise at WARNING level
- _timed decorator wraps each registered tool and logs elapsed time at DEBUG level
- Pass cache_discovery=False to googleapiclient build() calls — the file-based
  discovery cache requires oauth2client<4.0 and is unused with google-auth

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@xing5
Copy link
Copy Markdown
Owner

xing5 commented May 14, 2026

Closing as superseded for the stdio logging fix by #80. The timing/observability ideas are useful, but should come back as a separate PR after the stdout safety fix, with tests and without bundling function-wrapping changes into the logging patch.

@xing5 xing5 closed this May 14, 2026
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.

2 participants