@@ -57,7 +57,8 @@ discard block |
||
57 | 57 | default: |
58 | 58 | return $this->samples($metric, $items); |
59 | 59 | } |
60 | - } catch (Exception $e) { |
|
60 | + } |
|
61 | + catch (Exception $e) { |
|
61 | 62 | throw new StorageException("Failed to collect `{$key}` samples.", 0, $e); |
62 | 63 | } |
63 | 64 | } |
@@ -73,7 +74,8 @@ discard block |
||
73 | 74 | $this->labeled($metric, $labels)->toJson(), |
74 | 75 | $value |
75 | 76 | ); |
76 | - } catch (Exception $e) { |
|
77 | + } |
|
78 | + catch (Exception $e) { |
|
77 | 79 | $class = get_class($metric); |
78 | 80 | $operation = __METHOD__; |
79 | 81 | |
@@ -110,7 +112,8 @@ discard block |
||
110 | 112 | $this->redis->hsetnx($key, $field, $identifier); |
111 | 113 | $this->redis->rpush($identifier, $value); |
112 | 114 | } |
113 | - } catch (Exception $e) { |
|
115 | + } |
|
116 | + catch (Exception $e) { |
|
114 | 117 | $class = get_class($metric); |
115 | 118 | |
116 | 119 | throw new StorageException("Failed to observe [$class] with a value of `$value`.", 0, $e); |
@@ -128,7 +131,8 @@ discard block |
||
128 | 131 | $this->labeled($gauge, $labels)->toJson(), |
129 | 132 | $value |
130 | 133 | ); |
131 | - } catch (Exception $e) { |
|
134 | + } |
|
135 | + catch (Exception $e) { |
|
132 | 136 | $class = get_class($gauge); |
133 | 137 | |
134 | 138 | throw new StorageException("Failed to set the value of [$class] to `$value`.", 0, $e); |
@@ -50,7 +50,7 @@ |
||
50 | 50 | $actual = count($labels); |
51 | 51 | |
52 | 52 | if ($expected !== $actual) { |
53 | - throw new LabelException("Expected {$expected} label values but only {$actual} were given."); |
|
53 | + throw new LabelException("expected {$expected} label values but only {$actual} were given."); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | return new Collection([ |