open-telemetry / opentelemetry-erlang-api

Erlang/Elixir OpenTelemetry API
Apache License 2.0
60 stars 13 forks source link

Add http status helper #78

Closed bryannaegele closed 3 years ago

bryannaegele commented 3 years ago

This provides a helper module for translating HTTP status codes to Otel statuses as laid out by the table in https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/semantic_conventions/http.md#status. The NGINX-specific cancelled status from the table is omitted since it isn't applicable.