[erlang-questions] erlang:trace_pattern with {return_trace}: is match against return value possible?

Vladimir Gordeev gordeev.vladimir.v@REDACTED
Sat Mar 4 17:16:38 CET 2017


I'm tracing http requests in my app by following pattern:

erlang:trace_pattern({lhttpc, request, 9}, [{'_', [], [{return_trace}]}],

It works great and sends me every request and result.

The problem is that response might be quite huge (several of megabytes) and
as far as I understand, it will copy it constantly to my tracer process.

I see that I can use size() guard function in match specifications, and I
wamt replace body binary with <<"skipped">> if it's too big.

Is there a way to match against call returning value?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170304/fb045230/attachment.htm>

More information about the erlang-questions mailing list