Exception: Yabeda::Prometheus::Adapter::UndeclaredMetricTags
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Yabeda::Prometheus::Adapter::UndeclaredMetricTags
- Defined in:
- lib/yabeda/prometheus/adapter.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(metric_name, caused_exception) ⇒ UndeclaredMetricTags
constructor
A new instance of UndeclaredMetricTags.
Constructor Details
#initialize(metric_name, caused_exception) ⇒ UndeclaredMetricTags
Returns a new instance of UndeclaredMetricTags.
13 14 15 16 17 18 19 |
# File 'lib/yabeda/prometheus/adapter.rb', line 13 def initialize(metric_name, caused_exception) @message = <<~MESSAGE.strip Prometheus requires all used tags to be declared at metric registration time. \ Please add `tags` option to the declaration of metric `#{metric_name}`. \ Error: #{caused_exception.} MESSAGE end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
11 12 13 |
# File 'lib/yabeda/prometheus/adapter.rb', line 11 def @message end |