Kitaru MLflow importer
Import MLflow traces as Kitaru sessions. This package backs the built-in kitaru/mlflow importer and runs on a Kitaru worker, so traces are parsed in your environment.
Most users do not install or call this package directly. Export traces with the MLflow CLI, start a Kitaru worker, then select the built-in importer:
mlflow traces search --experiment-id 1 --output json > mlflow-traces.json
kitaru session import mlflow-traces.json \
--importer kitaru/mlflow@latest \
--agent support-agent@latest \
--wait
The importer accepts an mlflow traces search --output json page, a single Trace.to_json() document, a JSON list of traces, or JSONL whose lines are any of those. Traces must include their spans.
Traces that share mlflow.trace.session metadata become one session with one turn per trace; a trace without it becomes its own session. Set join_on to a dotted path or JSON pointer inside each trace to group by another value, for example --params '{"join_on":"info.trace_metadata.mlflow.trace.user"}'.
Source identity uses source_instance, then the experiment_id parameter alias, then the experiment in the trace location. Keep it stable across imports to preserve deduplication. Traces stored in a Databricks Unity Catalog location carry no experiment id; supply source_instance for those.
The importer maps LLM and CHAT_MODEL spans to model calls and TOOL spans to tool calls, reading MLflow's normalized model, provider, token usage, and cost attributes. When a model span wraps another model span, such as a LangChain chat model around the OpenAI call it makes, only the innermost span counts as a model call, and a span keeps only the tokens and cost its descendants do not already account for, so session totals count each request once. Valid MLflow assessments are kept in session metadata.
API import
The api extra fetches traces directly from an MLflow 3 tracking server. Configure MLFLOW_TRACKING_URI, plus MLFLOW_TRACKING_TOKEN or MLFLOW_TRACKING_USERNAME and MLFLOW_TRACKING_PASSWORD when the server requires authentication. A time-window query searches experiment_ids, defaulting to MLFLOW_EXPERIMENT_ID, and accepts an MLflow filter_string. A trace_ids query fetches those traces.
Links
Licensed under Apache-2.0.
Metadata
Release files for kitaru-mlflow-importer 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kitaru_mlflow_importer-0.1.0.tar.gz | 19.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kitaru_mlflow_importer-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.2 kB
Release files / kitaru_mlflow_importer-0.1.0.tar.gz
| Download URL | kitaru_mlflow_importer-0.1.0.tar.gz |
|---|---|
| Size | 19.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f105265498987bb31ab8f067bfafc9799b91af02b4627cc116f934b491beab50
|
|
BLAKE2b-256 checksum How to use checksums |
c6725ceb0aa79eddaa1f4bffeb706b3c60bf3a0e51d4205da937a9de1f10f95c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / kitaru_mlflow_importer-0.1.0-py3-none-any.whl
| Download URL | kitaru_mlflow_importer-0.1.0-py3-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
990f4c348ef27e3f918ccb21995cfe3c0be2bae6bc9ebca1595659336562710a
|
|
BLAKE2b-256 checksum How to use checksums |
bdcfc911faab92a2943c6492c344c29d5dd42515636a52784a5468cab5ac82e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency log