pydantic/logfire

Sending traceback with Django Ninja

Open

#923 ouverte le 12 mars 2025

Voir sur GitHub
 (5 commentaires) (0 réactions) (0 assignés)Python (244 forks)github user discovery
good first issue

Métriques du dépôt

Stars
 (4 282 stars)
Métriques de merge PR
 (Merge moyen 7j 8h) (35 PRs mergées en 30 j)

Description

Question

Is it possible to send traceback along with the log? I am using Django.

This is the log I want to send along with with the log

Simulate unhandled exception
Traceback (most recent call last):
  File "/workspaces/gateway/.venv/lib/python3.12/site-packages/ninja/operation.py", line 120, in run
    result = self.view_func(request, **values)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspaces/gateway/app/appcore/routes/sample.py", line 135, in get_simulate_unhandled_exception
    raise Exception("Simulate unhandled exception")
Exception: Simulate unhandled exception

Guide contributeur