haystack/releasenotes/notes/content-tracing-25df3909e11924b1.yaml
Tobias Wochinger 41b93108c0
feat: allow content tracing (#7066)
* feat: implement content tracing capability

* feat: trace component input/output

* chore: extend type serialization to classes with `to_dict`

* docs: add option for content tracing

* style: remove unused import

* chore: add more tags

* style: ignore typing

* fix: fix tagging of types
2024-02-23 11:52:54 +01:00

13 lines
560 B
YAML

---
enhancements:
- |
Allow code instrumentation to also trace the input and output of components.
This is useful for debugging and understanding the behavior of components.
This behavior is disabled by default and can be enabled with one of the following methods:
- Set the environment variable `HAYSTACK_CONTENT_TRACING_ENABLED_ENV_VAR` to `true` before importing Haystack.
- Enable content tracing in the code:
```python
from haystack import tracing
tracing.tracer.is_content_tracing_enabled = True
```