0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00
cowboy/test
Loïc Hoguin f4331f7c16
Add cowboy_tracer_h stream handler
Another experimental stream handler. It enables tracing for
the connection process and any children processes based on
the matching of the request. It can be used to do ad-hoc
tracing by sending a specific header, path, method or other.

It is meant to be used both for tests and production. Some
configuration scenarios are NOT safe for production, beware.

It's important to understand that, at this time, tracing
is enabled on the scale of the entire connection including
any future request processes. Keep this in mind when trying
to use it in production. The only way to stop tracing is
by having the callback function exit (by calling exit/1
explicitly). This can be done after a certain number of
events for example. Tracing can generate a lot of events,
so it's a good idea to stop after a small number of events
(between 1000 and 10000 should be good) and to avoid tracing
the whole world.

Documentation will follow at a later time.
2017-10-27 17:18:28 +01:00
..
handlers Ensure stream terminate is called when switching protocols 2017-10-22 14:53:04 +01:00
http_SUITE_data Fix the remaining http_SUITE test cases 2017-07-14 19:09:42 +02:00
static_handler_SUITE_data cowboy_static: Add support for files in EZ archives 2017-01-24 11:36:58 +01:00
ws_SUITE_data Allow passing options to sub protocols 2017-02-18 18:26:20 +01:00
compress_SUITE.erl Fix a harmless warning in tests 2017-05-23 14:10:05 +02:00
cover.spec Use ct_run instead of rebar ct for running ct tests 2013-01-04 17:56:49 +01:00
cowboy_ct_hook.erl Welcome to 2017 2017-01-02 19:36:36 +01:00
cowboy_test.erl Add cowboy_tracer_h stream handler 2017-10-27 17:18:28 +01:00
examples_SUITE.erl Add test for the compress_response example 2017-02-05 17:32:03 +01:00
h2spec_SUITE.erl Add a test suite for h2spec 2017-05-23 14:05:00 +02:00
http2_SUITE.erl Remove NumAcceptors argument from start_clear/tls 2017-06-07 15:15:54 +02:00
http_SUITE.erl Fix the remaining http_SUITE test cases 2017-07-14 19:09:42 +02:00
loop_handler_SUITE.erl Add the idle_timeout HTTP/1.1 protocol option 2017-05-03 17:44:00 +02:00
metrics_SUITE.erl Add a metrics test for switching to Websocket 2017-10-22 14:54:13 +01:00
misc_SUITE.erl Make sure a path parsing error in the router gives a 400 2017-10-03 00:30:15 +02:00
req_SUITE.erl Introduce cowboy_req:sock/1 and cowboy_req:cert/1 2017-10-25 21:03:26 +01:00
rfc7230_SUITE.erl Rewrite the tests for header name/value limits 2017-01-03 18:07:39 +01:00
rfc7540_SUITE.erl Fix a bug in HTTP/2 where connection gets closed prematurely 2017-10-23 14:49:33 +01:00
static_handler_SUITE.erl Add a static handler test with an empty file 2017-09-04 18:00:56 +02:00
stream_handler_SUITE.erl Ensure stream terminate is called when switching protocols 2017-10-22 14:53:04 +01:00
tracer_SUITE.erl Add cowboy_tracer_h stream handler 2017-10-27 17:18:28 +01:00
ws_SUITE.erl Remove NumAcceptors argument from start_clear/tls 2017-06-07 15:15:54 +02:00