opentelemetry-erlang-contrib/instrumentation/opentelemetry_cowboy/test
Kai e3f0ec8ee0
Handle binary and undefined response status and rename http.status to http.status_code in `opentelemetry-cowboy` (#48)
* Handle binary resp_status from Cowboy and rename http.status to http.status_code

* Fix test to use http.status_code as well

* Handle resp_status could be undefined but not error

- This could be due to websocket upgrade request.

* Rename Status1 and transform_status to a more concise naming

* Add test case for handling binary response code

* Fix syntax and failing tests

* Always convert cowboy status to status code

* Set otel span status as error when status code >= 500
2022-03-19 06:16:15 -06:00
..
opentelemetry_cowboy_SUITE.erl Handle binary and undefined response status and rename http.status to http.status_code in `opentelemetry-cowboy` (#48) 2022-03-19 06:16:15 -06:00
test_h.erl Handle binary and undefined response status and rename http.status to http.status_code in `opentelemetry-cowboy` (#48) 2022-03-19 06:16:15 -06:00