class Traces::Config

def require_backend(env = ENV)

Require a specific traces backend implementation.
def require_backend(env = ENV)
	if backend = env["TRACES_BACKEND"]
		begin
			require(backend)
			
			# We ensure that the interface methods replace any existing methods by prepending the module:
			Traces.singleton_class.prepend(Backend::Interface)
			
			return true
		rescue LoadError => error
			warn "Unable to load traces backend: #{backend.inspect}!"
		end
	end
	
	return false
end