aboutsummaryrefslogtreecommitdiffstats
path: root/test/handlers/stream_handler_h.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-11-17 13:20:14 +0100
committerLoïc Hoguin <[email protected]>2017-11-17 13:23:38 +0100
commitce5ab4b49ae5b8c0f701334ada48a2e517079e1b (patch)
tree4c5feb65c5b1c560f07688743226dda429ec2082 /test/handlers/stream_handler_h.erl
parent52d869128b28011e0387f1744c8b547faac46cba (diff)
downloadcowboy-ce5ab4b49ae5b8c0f701334ada48a2e517079e1b.tar.gz
cowboy-ce5ab4b49ae5b8c0f701334ada48a2e517079e1b.tar.bz2
cowboy-ce5ab4b49ae5b8c0f701334ada48a2e517079e1b.zip
Initialize trace patterns only once
They are global for the node for all future call trace flags, so it's not necessary to set them repeatedly with every request. Doing it once at startup also ensures we can't have race conditions when the user wants to change which trace patterns should be used (because requests are concurrent and patterns end up overwriting themselves repeatedly), and makes this changing of trace patterns much more straightforward: the user can just define the ones they want. The default function traces everything. In addition I have also added the tracer_flags option to make the trace flags configurable, excluding the tracer pid.
Diffstat (limited to 'test/handlers/stream_handler_h.erl')
0 files changed, 0 insertions, 0 deletions