For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).
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:
Int: The ID of the current trace if profiling is enabled, otherwise 0.