path: root/test/metrics_SUITE.erl
AgeCommit message (Collapse)Author
2020-04-08Get rid of timeouts in metrics_SUITELoïc Hoguin
Again to avoid intermittent issues.
2019-10-04Improve some early_error testsLoïc Hoguin
2019-10-03Make stream_error early_error reasons consistentLoïc Hoguin
Now both HTTP/1.1 and HTTP/2 follow the documented format. HTTP/1.1 was including an extra element containing the StreamID before, which was unnecessary because it is also given as argument to the callback. HTTP/2 early_error will now include headers in its PartialReq.
2019-10-02Add {set_options, #{metrics_user_data := Map}}Loïc Hoguin
This allows giving custom metadata to the metrics stream handler. This can be useful to for example provide the name of the module handling the request which is only known after routing. But any user data is allowed. When called multiple times the user data maps are merged.
2018-10-31Handle error_response command in cowboy_metrics_hGrigory Starinkin
2018-06-26Fix tests for most recent GunLoïc Hoguin
2017-11-29Add nowarn_export_all to all test suitesLoïc Hoguin
2017-11-20Add a test for early errors that occur on the request-lineLoïc Hoguin
2017-10-31Add informational responses to metricsLoïc Hoguin
2017-10-22Add a metrics test for switching to WebsocketLoïc Hoguin
2017-10-21Add a test for stream_reply metricsLoïc Hoguin
2017-10-21Add a test for early_error metricsLoïc Hoguin
2017-10-21Add a metrics test when the handler didn't send anythingLoïc Hoguin
Also fix a test group to use h2 instead of HTTP/1.1.
2017-10-20Add a test for metrics with a request bodyLoïc Hoguin
2017-10-20Add experimental metrics stream handlerLoïc Hoguin
It collects metrics and passes them to a configurable callback once the stream terminates. It will be documented in a future release. More tests incoming.