Skip to content

Commit 48ebdd6

Browse files
B-Step62claudebilgeyucel
authored andcommitted
docs: Add MLflow to tracing backends (#10697)
* docs: Add MLflow to tracing backends Add MLflow section to the tracing documentation page alongside Langfuse and Weights & Biases Weave. MLflow provides native tracing support for Haystack via mlflow.haystack.autolog(). Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: B-Step62 <yuki.watanabe@databricks.com> * comments Signed-off-by: B-Step62 <yuki.watanabe@databricks.com> --------- Signed-off-by: B-Step62 <yuki.watanabe@databricks.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Bilge Yücel <bilgeyucel96@gmail.com>
1 parent 6aa964a commit 48ebdd6

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

docs-website/docs/development/tracing.mdx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,28 @@ Check out the component's [documentation page](../pipeline-components/connectors
126126
:::
127127
<ClickableImage src="/img/11cec4f-langfuse-generation-span.png" alt="Langfuse trace detail view showing generation span with input prompt, output, metadata, latency, and cost information for a language model call" />
128128

129+
### MLflow
130+
131+
[MLflow](https://mlflow.org/) is an open-source platform for managing the end-to-end machine learning and AI lifecycle. MLflow provides native tracing support for Haystack. Simply install MLflow and enable automatic tracing with a single line of code.
132+
133+
```shell
134+
pip install mlflow
135+
```
136+
137+
```python
138+
import mlflow
139+
140+
mlflow.haystack.autolog()
141+
# Optionally set an experiment name
142+
mlflow.set_experiment("Haystack")
143+
```
144+
145+
This automatically captures traces from all Haystack pipelines and components, including latencies, token usage, cost, and any exceptions.
146+
147+
:::info
148+
Check out the [MLflow Haystack integration guide](https://haystack.deepset.ai/integrations/mlflow) for a full walkthrough with examples.
149+
:::
150+
129151
### Weights & Biases Weave
130152

131153
The `WeaveConnector` component allows you to trace and visualize your pipeline execution in [Weights & Biases](https://wandb.ai/site/) framework.

docs-website/versioned_docs/version-2.25/development/tracing.mdx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,28 @@ Check out the component's [documentation page](../pipeline-components/connectors
126126
:::
127127
<ClickableImage src="/img/11cec4f-langfuse-generation-span.png" alt="Langfuse trace detail view showing generation span with input prompt, output, metadata, latency, and cost information for a language model call" />
128128

129+
### MLflow
130+
131+
[MLflow](https://mlflow.org/) is an open-source platform for managing the end-to-end machine learning and AI lifecycle. MLflow provides native tracing support for Haystack. Simply install MLflow and enable automatic tracing with a single line of code.
132+
133+
```shell
134+
pip install mlflow
135+
```
136+
137+
```python
138+
import mlflow
139+
140+
mlflow.haystack.autolog()
141+
# Optionally set an experiment name
142+
mlflow.set_experiment("Haystack")
143+
```
144+
145+
This automatically captures traces from all Haystack pipelines and components, including latencies, token usage, cost, and any exceptions.
146+
147+
:::info
148+
Check out the [MLflow Haystack integration guide](https://haystack.deepset.ai/integrations/mlflow) for a full walkthrough with examples.
149+
:::
150+
129151
### Weights & Biases Weave
130152

131153
The `WeaveConnector` component allows you to trace and visualize your pipeline execution in [Weights & Biases](https://wandb.ai/site/) framework.

0 commit comments

Comments
 (0)