The oslo_reports.views.text.threading Module

Provides thread and stack-trace views

This module provides a collection of views for visualizing threads, green threads, and stack traces in human-readable form.

class oslo_reports.views.text.threading.GreenThreadView

Bases: object

A Green Thread View

This view displays a green thread provided by the data model oslo_reports.models.threading.GreenThreadModel

FORMAT_STR = '------{thread_str: ^60}------\n{stack_trace}'
class oslo_reports.views.text.threading.StackTraceView(path=None, text=None)

Bases: oslo_reports.views.jinja_view.JinjaView

A Stack Trace View

This view displays stack trace models defined by oslo_reports.models.threading.StackTraceModel

VIEW_TEXT = '{% if root_exception is not none %}Exception: {{ root_exception }}\n------------------------------------\n\n{% endif %}{% for line in lines %}\n{{ line.filename }}:{{ line.line }} in {{ line.name }}\n {% if line.code is not none %}`{{ line.code }}`{% else %}(source not found){% endif %}\n{% else %}\nNo Traceback!\n{% endfor %}'
class oslo_reports.views.text.threading.ThreadView

Bases: object

A Thread Collection View

This view displays a python thread provided by the data model oslo_reports.models.threading.ThreadModel # noqa

FORMAT_STR = '------{thread_str: ^60}------\n{stack_trace}'