Page MenuHomePhorge

No OneTemporary

Size
1009 B
Referenced Files
None
Subscribers
None
diff --git a/lib/prometheus/metric.ex b/lib/prometheus/metric.ex
index db12761..3834ed7 100644
--- a/lib/prometheus/metric.ex
+++ b/lib/prometheus/metric.ex
@@ -1,27 +1,27 @@
defmodule Prometheus.Metric do
@moduledoc false
defmacro __using__(_opts) do
quote do
- alias Prometheus.Metric.{Counter,Gauge,Histogram,Summary}
- require Prometheus.Metric.{Counter,Gauge,Histogram,Summary}
+ alias Prometheus.Metric.{Counter,Gauge,Histogram,Summary,Boolean}
+ require Prometheus.Metric.{Counter,Gauge,Histogram,Summary,Boolean}
end
end
defmacro ct_parsable_spec?(spec) do
quote do
is_list(unquote(spec)) or is_atom(unquote(spec))
end
end
def parse_spec(spec) when is_list(spec) do
registry = Keyword.get(spec, :registry, :default)
name = Keyword.fetch!(spec, :name)
labels = Keyword.get(spec, :labels, [])
{registry, name, labels}
end
def parse_spec(spec) when is_atom(spec) do
{:default, spec, []}
end
end

File Metadata

Mime Type
text/x-diff
Expires
Sat, Nov 30, 7:44 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41396
Default Alt Text
(1009 B)

Event Timeline