Skip to main content

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.

Licensed under Apache-2.0.

Metadata

Release files for kitaru-mlflow-importer 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kitaru-mlflow-importer 0.2.0
File Size Uploaded Provenance Actions
kitaru_mlflow_importer-0.2.0.tar.gz 19.8 kB With provenance Details for kitaru_mlflow_importer-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kitaru-mlflow-importer 0.2.0
File Interpreter ABI Platform Actions
kitaru_mlflow_importer-0.2.0-py3-none-any.whl Python 3 none any Details for kitaru_mlflow_importer-0.2.0-py3-none-any.whl

Total release size: 38.3 kB

Release files / kitaru_mlflow_importer-0.2.0.tar.gz

Download URL kitaru_mlflow_importer-0.2.0.tar.gz
Size 19.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fd9b4f94f6d2b0ba426e925066d210f6d2e04c9f55800e366b6a149acee4cd64
BLAKE2b-256 checksum
How to use checksums
eeefa5adcb3e89a8951180af14182295190028ab2f16159de9866c8422a5523f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / kitaru_mlflow_importer-0.2.0-py3-none-any.whl

Download URL kitaru_mlflow_importer-0.2.0-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a499b29654eead75902f64aa826349ac517e095dfcc0300b3ade07a98ef3b934
BLAKE2b-256 checksum
How to use checksums
e8358626795559ecd79b734eafca7afaa675ed80c63fcb4ae2716bf658f0f632
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Security for kitaru-mlflow-importer 0.2.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kitaru_mlflow_importer-0.2.0.tar.gz

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 Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page