Skip to content

Conversation

@kausmeows
Copy link
Contributor

@kausmeows kausmeows commented Oct 23, 2025

Summary

All things traces and spans in your own db with Agno.

DB-
image

Printing traces in cli (fetching from DB)
image

Endpoints-

  • /traces
  • /traces/<trace_id>
  • /traces/<trace_id>?<span_id>

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Improvement
  • Model update
  • Other:

Checklist

  • Code complies with style guidelines
  • Ran format/validation scripts (./scripts/format.sh and ./scripts/validate.sh)
  • Self-review completed
  • Documentation updated (comments, docstrings)
  • Examples and guides: Relevant cookbook examples have been included or updated (if applicable)
  • Tested in clean environment
  • Tests added/updated (if applicable)

Additional Notes

Add any important context (deployment instructions, screenshots, security considerations, etc.)

@kausmeows kausmeows requested a review from a team as a code owner October 23, 2025 14:38
@kausmeows kausmeows changed the title feat: traces IN agno feat: [WIP] traces IN agno Oct 23, 2025
@kausmeows kausmeows added the WIP work in progress label Oct 23, 2025
@kausmeows kausmeows changed the title feat: [WIP] traces IN agno feat: traces IN agno Nov 5, 2025
from agno.utils.log import log_debug, log_error, log_info
from agno.utils.string import generate_id

if TYPE_CHECKING:
Copy link
Contributor

Choose a reason for hiding this comment

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

Needed behind type_checking?

# Fallback if spans table doesn't exist
return select(table, literal(0).label("total_spans"), literal(0).label("error_count"))

def create_trace(self, trace: "Trace") -> None:
Copy link
Contributor

Choose a reason for hiding this comment

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

Since it can be existing, should this be upsert_trace?

kausmeows and others added 6 commits November 6, 2025 13:50
## Summary

Describe key changes, mention related issues or motivation for the
changes.

(If applicable, issue number: #\_\_\_\_)

## Type of change

- [ ] Bug fix
- [ ] New feature
- [ ] Breaking change
- [ ] Improvement
- [ ] Model update
- [ ] Other:

---

## Checklist

- [ ] Code complies with style guidelines
- [ ] Ran format/validation scripts (`./scripts/format.sh` and
`./scripts/validate.sh`)
- [ ] Self-review completed
- [ ] Documentation updated (comments, docstrings)
- [ ] Examples and guides: Relevant cookbook examples have been included
or updated (if applicable)
- [ ] Tested in clean environment
- [ ] Tests added/updated (if applicable)

---

## Additional Notes

Add any important context (deployment instructions, screenshots,
security considerations, etc.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WIP work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants