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.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.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.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.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().