Current section
Files
Jump to
Current section
Files
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