Function get_or_create_trace_id

Source
pub fn get_or_create_trace_id() -> String
Expand description

Returns the current trace ID, if none exists, set the current execution id as the trace id. This ensures that the client trace id and execution id is the same. The trace ID remains the same as long as it is in the same process. Use this method only on the client side.