log
Thelog() method migrates from client.log() to client.ml.log().
Parameter Reference
This table provides a complete mapping of all parameters between v7 and v8, including which parameters were removed, renamed, or remain unchanged.| Parameter | v7 | v8 | Changes |
|---|---|---|---|
space_id | Client init | Required per call | Must pass explicitly |
model_id | Required | Required | Renamed to model_name |
dataframe | Required | Required | — |
schema | Required | Required | — |
environment | Required | Required | — |
model_type | Required | Required | — |
model_version | Optional | Optional | — |
batch_id | Optional | Optional | — |
validate | Optional | Optional | — |
metrics_validation | Optional | Optional | — |
surrogate_explainability | Optional | Optional | — |
timeout | Optional | Optional | — |
path | Optional | Optional | Renamed to tmp_dir for clarity |
sync | Optional | ❌ Removed | No longer supported |
verbose | Optional | ❌ Removed | Use Python logging config instead |
Side-by-Side Comparison
See the complete migration in action with this example showing both client initialization and logging model predictions.log_spans
Thelog_spans() method migrates from client.log_spans() to client.spans.log().
Parameter Reference
This table provides a complete mapping of all parameters between v7 and v8, including which parameters were removed, renamed, or remain unchanged.| Parameter | v7 | v8 | Notes / Changes |
|---|---|---|---|
space_id | Client init | Required per call | Must pass explicitly |
project_name | Optional | Required | Must pass explicitly |
dataframe | Required | Required | — |
evals_dataframe | Optional | Optional | — |
datetime_format | Optional | Optional | — |
validate | Optional | Optional | — |
timeout | Optional | Optional | — |
model_id | Deprecated | ❌ Removed | Use project_name instead |
model_version | Optional | ❌ Removed | No longer supported |
path | Optional | Optional | Renamed to tmp_dir for clarity |
verbose | Optional | ❌ Removed | Use Python logging config instead |
Side-by-Side Comparison
See the complete migration in action with this example showing both client initialization and logging spans with all common parameters.log_evaluations & log_evaluations_sync
In v7, there were two separate methods for logging evaluations:log_evaluations()
(async HTTP) and log_evaluations_sync() (sync gRPC). In v8, both consolidate
into a single update_evaluations() method that uses gRPC by default with an
optional force_http parameter.
Both v7 methods (log_evaluations and log_evaluations_sync) now use the same
v8 method: update_evaluations(), which uses Arrow Flight (gRPC) by default, matching
the behavior of v7’s log_evaluations_sync(). Use force_http=True if you need
HTTP transport (not recommended for large payloads).
Parameter Reference
This table provides a complete mapping of all parameters between v7 and v8, including which parameters were removed, renamed, or remain unchanged.| Parameter | v7 | v8 | Notes / Changes |
|---|---|---|---|
space_id | Client init | Required per call | Must pass explicitly |
project_name | Optional | Required | Must pass explicitly |
dataframe | Required | Required | — |
validate | Optional | Optional | — |
timeout | Optional | Optional | — |
model_id | Deprecated | ❌ Removed | Use project_name instead |
model_version | Optional | ❌ Removed | No longer supported |
verbose | Optional | ❌ Removed | Use Python logging config instead |
tmp_dir | N/A | ✅ New | Temporary directory for file storage |
force_http | N/A | ✅ New | Force HTTP transport (defaults to False) |
Side-by-Side Comparison
See the complete migration in action with this example showing both client initialization and logging evaluations synchronously.log_evaluations_sync
log_evaluations
log_annotations
Thelog_annotations() method migrates from client.log_annotations() to client.spans.update_annotations().
Parameter Reference
This table provides a complete mapping of all parameters between v7 and v8, including which parameters were removed, renamed, or remain unchanged.| Parameter | v7 | v8 | Notes / Changes |
|---|---|---|---|
space_id | Client init | Required per call | Must pass explicitly |
project_name | Required | Required | — |
dataframe | Required | Required | — |
validate | Optional | Optional | — |
verbose | Optional | ❌ Removed | Use Python logging config instead |
Side-by-Side Comparison
See the complete migration in action with this example showing both client initialization and logging annotations.log_metadata
Thelog_metadata() method migrates from client.log_metadata() to client.spans.update_metadata().
Parameter Reference
This table provides a complete mapping of all parameters between v7 and v8, including which parameters were removed, renamed, or remain unchanged.| Parameter | v7 | v8 | Changes |
|---|---|---|---|
space_id | Client init | Required per call | Must pass explicitly |
project_name | Required | Required | — |
dataframe | Required | Required | — |
patch_document_column_name | Optional | Optional | — |
validate | Optional | Optional | — |
verbose | Optional | ❌ Removed | Use Python logging config instead |