Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F116089
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1009 B
Referenced Files
None
Subscribers
None
View Options
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
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Nov 30, 7:44 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41396
Default Alt Text
(1009 B)
Attached To
Mode
R26 prometheus.ex
Attached
Detach File
Event Timeline
Log In to Comment