Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError from console exporter #830

Open
samuelcolvin opened this issue Jan 29, 2025 · 1 comment · May be fixed by #831
Open

TypeError from console exporter #830

samuelcolvin opened this issue Jan 29, 2025 · 1 comment · May be fixed by #831

Comments

@samuelcolvin
Copy link
Member

Description

See https://pydanticlogfire.slack.com/archives/C06EDRBSAH3/p1738124276068249

ai  | Traceback (most recent call last):
ai  |   File "/venv/lib/python3.12/site-packages/opentelemetry/sdk/trace/export/__init__.py", line 113, in on_end
ai  |     self.span_exporter.export((span,))
ai  |   File "/venv/lib/python3.12/site-packages/logfire/_internal/exporters/console.py", line 94, in export
ai  |     self._log_span(span)
ai  |   File "/venv/lib/python3.12/site-packages/logfire/_internal/exporters/console.py", line 332, in _log_span
ai  |     self._print_span(span, indent)
ai  |   File "/venv/lib/python3.12/site-packages/logfire/_internal/exporters/console.py", line 121, in _print_span
ai  |     self._console.print(Text.assemble(*parts))
ai  |                         ^^^^^^^^^^^^^^^^^^^^^
ai  |   File "/venv/lib/python3.12/site-packages/rich/text.py", line 397, in assemble
ai  |     append(*part)
ai  |   File "/venv/lib/python3.12/site-packages/rich/text.py", line 979, in append
ai  |     raise TypeError("Only str or Text can be appended to Text")
ai  | TypeError: Only str or Text can be appended to Text

Python, Logfire & OS Versions, related packages (not required)

Their using logfire 3.2.0
@hramezani
Copy link
Member

Here is the fix #827

@samuelcolvin samuelcolvin linked a pull request Jan 29, 2025 that will close this issue
@hramezani hramezani reopened this Jan 30, 2025
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 a pull request may close this issue.

2 participants