Current section

Files

Jump to
prometheus_ex lib prometheus contrib http.ex
Raw

lib/prometheus/contrib/http.ex

defmodule Prometheus.Contrib.HTTP do
defmacro microseconds_duration_buckets do
:prometheus_http.microseconds_duration_buckets
end
defmacro status_class(code) do
quote do
require Prometheus.Error
Prometheus.Error.with_prometheus_error(
:prometheus_http.status_class(unquote(code))
)
end
end
end