Mojo function
get_current_trace_id
get_current_trace_id[level: TraceLevel]() -> Int
Returns the id of last created trace entry on the current thread.
Parameters:
- level (
TraceLevel
): The trace level to check.
Returns:
The ID of the current trace if profiling is enabled, otherwise 0.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!