to_dict method that returns a dictionary of strings containing all trace data. Because Weave can serialize dictionaries, this approach gives the UI access to the full object state. The following example shows the pattern:
to_dict method in place, Weave can serialize the object and display its contents in the trace UI instead of truncating the raw representation.
Trace Data