fix broken pipe and update package version
add check span is not nil
connect postgres with tracing hook