mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-27 06:58:35 +00:00
* 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
13 lines
560 B
YAML
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
|
|
```
|