Last active
May 23, 2024 17:09
-
-
Save nickva/ee96b3a2e65963a28da3eae71ae7bfab to your computer and use it in GitHub Desktop.
recon trace return errors only
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> recon_trace:calls({fabric, design_docs, fun(_) -> exception_trace() end}, 10, [ | |
{formatter, fun | |
({trace, _, exception_from, MFA, Err}) -> io_lib:format("|~p:~p|~n", [MFA,Err]); | |
({trace, _, return_from, MFA, {IsOk,_}=Res}) when IsOk =/= ok -> io_lib:format("|~p:~p|n", [MFA,Res]); | |
(_) -> "" | |
end} | |
]). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Call with a failure
Call with a success
Tracer logs failures only: