Context Managers

bt(name,correlation_header=None)

Context manager for reporting some work as a business transaction. Yields a BtHandle

If you need to start and end the transaction in different places in the code, use start_bt() and end_bt().

exit_call(bt_handle,exit_type,display_name,identifying_properties,optional_properties=None)

Context manager for adding exit calls to a business transaction. Yields an ExitCallHandle.

If you need to start and end exit calls in different places in your code, you can use start_exit_call() and end_exit_call().