opentelemetry-erlang-contrib/instrumentation/opentelemetry_cowboy
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
..
src 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 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
.gitignore Cowboy instrumentation (#18) 2021-10-06 13:36:22 -06:00
CHANGELOG.md Otel 1.0 support (#57) 2022-01-04 18:58:06 -07:00
LICENSE Cowboy instrumentation (#18) 2021-10-06 13:36:22 -06:00
README.md Publish packages (#28) 2021-10-15 14:01:11 -06:00
docs.config Publish packages (#28) 2021-10-15 14:01:11 -06:00
docs.sh Publish packages (#28) 2021-10-15 14:01:11 -06:00
rebar.config Otel 1.0 support (#57) 2022-01-04 18:58:06 -07:00
rebar.lock Otel 1.0 support (#57) 2022-01-04 18:58:06 -07:00

README.md

opentelemetry_cowboy

EEF Observability WG project Hex.pm Build Status

Telemetry handler that creates Opentelemetry spans from cowboy events.

After installing, setup the handler in your application behaviour before your top-level supervisor starts.

opentelemetry_cowboy:setup()

See cowboy_telemetry for prerequisite setup.

There is no additional prerequisite setup for plug_cowboy users.

Installation

{deps, [
  {opentelemetry_cowboy, "~> 0.1.0"}
]}
def deps do
  [
    {:opentelemetry_cowboy, "~> 0.1.0"}
  ]
end

Compatibility Matrix

opentelemetry_cowboy Version Otel Version Notes
v0.1.0 v.1.0.0-rc.3