> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-docs-1917.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Trace Data が切り捨てられる

Weave UI では、大きな Trace Data が一部切り捨てられることがあります。これは、デフォルトの trace 出力が、Weave でシリアライズ方法を判断できない生の custom Python object であるためです。

大きな Trace Data が切り捨てられないようにするには、すべての Trace Data を返す文字列の dict を定義してください。

```python theme={null}
import weave

class MyObj:
    def __init__(self, x: int):
        self.x = x

    def __repr__(self):
        return f"MyObj(x={self.x})"

    def to_dict(self):
        return {"x": self.x}

@weave.op()
def make_my_obj():
    x = "s" * 10_000
    return MyObj(x)
```

***

<Badge stroke shape="pill" color="orange" size="md">[Trace Data](/ja/support/weave/tags/trace-data)</Badge>
