Skip to content

Conversation

@Aditi777613
Copy link

This PR adds a new Observability Example under examples/observability/ to demonstrate structured logging and metrics tracking using loguru.

Key Highlights:

Implements a reusable logging_config.py setup for structured JSON logs.

Adds automatic request tracing with unique request IDs.

Logs HTTP methods, status codes, and latency for each request.

Compatible with external log aggregation tools like Grafana Loki and Elastic Stack.

Tested Locally:
✅ Verified with uvicorn examples.observability.test_app:app --reload
✅ Logs display structured JSON with request-level observability

image

Impact:
Enhances Bindu’s observability layer, helping developers monitor agent performance and behavior in production.

Copy link
Contributor

@raahulrahl raahulrahl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we need this? we are handling thorough loguru.

@Aditi777613
Copy link
Author

Thanks for the feedback! 🙌
While Loguru is indeed already part of Bindu’s core logging setup, this example is intended to demonstrate practical observability usage — showing how developers can:

  1. Enable structured JSON logs with request-level correlation IDs,
  2. Measure latency and per-request metrics, and
  3. Integrate with external tools like Grafana Loki or Elastic Stack.

It doesn’t modify Bindu’s internal logging — just provides a developer-facing reference example under examples/ for those looking to extend observability in their own agent apps.

@raahulrahl raahulrahl added the invalid This doesn't seem right label Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid This doesn't seem right

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants