File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
simpleclient/src/main/java/io/prometheus/client Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -143,10 +143,11 @@ public void inc(double amt) {
143
143
* @param amt the amount to increment the counter by
144
144
* @param exemplarLabels a set of key value pairs used to create the exemplar
145
145
*
146
- * @throws IllegalArgumentException if exemplarLabels is null
147
- * @throws IllegalArgumentException if exemplarLabels does not contain an even number of values
148
- * @throws IllegalArgumentException if exemplarLabels contains any invalid labels
149
- * @throws IllegalArgumentException if the combined length of the exemplarLabels is greater than 64
146
+ * @throws IllegalArgumentException If amt is negative.
147
+ * @throws IllegalArgumentException if exemplarLabels is null.
148
+ * @throws IllegalArgumentException if exemplarLabels does not contain an even number of values.
149
+ * @throws IllegalArgumentException if exemplarLabels contains any invalid labels.
150
+ * @throws IllegalArgumentException if the combined length of the exemplarLabels is greater than 64.
150
151
*/
151
152
public void incWithExemplar (double amt , String ... exemplarLabels ){
152
153
//TODO exemplar label validation
Original file line number Diff line number Diff line change @@ -274,10 +274,10 @@ public void observe(double amt) {
274
274
* @param amt the amount to observe
275
275
* @param exemplarLabels a set of key value pairs used to create the exemplar
276
276
*
277
- * @throws IllegalArgumentException if exemplarLabels is null
278
- * @throws IllegalArgumentException if exemplarLabels does not contain an even number of values
279
- * @throws IllegalArgumentException if exemplarLabels contains any invalid labels
280
- * @throws IllegalArgumentException if the combined length of the exemplarLabels is greater than 64
277
+ * @throws IllegalArgumentException if exemplarLabels is null.
278
+ * @throws IllegalArgumentException if exemplarLabels does not contain an even number of values.
279
+ * @throws IllegalArgumentException if exemplarLabels contains any invalid labels.
280
+ * @throws IllegalArgumentException if the combined length of the exemplarLabels is greater than 64.
281
281
*/
282
282
public void observeWithExemplar (double amt , String ... exemplarLabels ) {
283
283
//TODO exemplar label validation
You can’t perform that action at this time.
0 commit comments