enter static method
Marks the current phase of the running call, counted in usage events under key; no-op outside a tool call, throws CallAbandoned once the call was cancelled.
Implementation
static void enter(String phase, {required String key}) {
checkAlive();
final call = current;
if (call == null) return;
call._set(phase);
call._startBase(key);
}