Added context_manager to the tracing scope. Added a C compatibility layer.