Skip to content

Dashboard error before records ingested [BUG] #2235

@pdmendki

Description

@pdmendki

Bug Description
In the sample application, dashboard is not reporting records

To Reproduce
Run the TruLens Quickstart notebook in colab, after sending queries, session.get_leaderboard() lists records. But the dashboard when started is not listitng records

Expected Behavior
Dashboard should data

Relevant Logs/Tracebacks
Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. If the issue is related to the TruLens dashboard, please also include a screenshot.

This is the call stack for dashboard error
AttributeError: type object 'Record' has no attribute 'app_version'
Traceback:
File "/usr/local/lib/python3.12/dist-packages/trulens/dashboard/main.py", line 37, in
main()
File "/usr/local/lib/python3.12/dist-packages/trulens/dashboard/main.py", line 33, in main
pg.run()
File "/usr/local/lib/python3.12/dist-packages/streamlit/navigation/page.py", line 300, in run
exec(code, module.dict) # noqa: S102
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/trulens/dashboard/tabs/Records.py", line 733, in
records_main()
File "/usr/local/lib/python3.12/dist-packages/trulens/dashboard/tabs/Records.py", line 729, in records_main
render_records(app_name)
File "/usr/local/lib/python3.12/dist-packages/trulens/dashboard/tabs/Records.py", line 690, in render_records
_show_no_records_error(app_name=app_name, app_versions=app_versions)
File "/usr/local/lib/python3.12/dist-packages/trulens/dashboard/utils/dashboard_utils.py", line 737, in _show_no_records_error
otel_count, non_otel_count = _check_cross_format_records(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/trulens/dashboard/utils/dashboard_utils.py", line 724, in check_cross_format_records
query = query.where(db.orm.Record.app_version.in
(app_versions)) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^

Image

Environment:

  • OS: [e.g. MacOS, Windows] - Windows using google chrome
  • Python Version - in colab
  • TruLens version - using Quickstart sample
  • Versions of other relevant installed libraries

Additional Context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions