e3f0ec8ee0
* 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 |
||
---|---|---|
.. | ||
src | ||
test | ||
.gitignore | ||
CHANGELOG.md | ||
LICENSE | ||
README.md | ||
docs.config | ||
docs.sh | ||
rebar.config | ||
rebar.lock |
README.md
opentelemetry_cowboy
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 |