Skip to content

Commit 85c62ef

Browse files
authored
docs(api): fix counter negative value wording (#3396)
1 parent d154066 commit 85c62ef

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ All notable changes to this project will be documented in this file.
2626

2727
### :books: (Refine Doc)
2828

29+
* docs(api): fix counter negative value wording [#3396](https://github.com/open-telemetry/opentelemetry-js/pull/3396) @legendecas
30+
2931
### :house: (Internal)
3032

3133
* ci: run browser tests without circle [#3328](https://github.com/open-telemetry/opentelemetry-js/pull/3328) @dyladan

api/src/metrics/Metric.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export enum ValueType {
6464
*/
6565
export interface Counter<AttributesTypes extends MetricAttributes = MetricAttributes> {
6666
/**
67-
* Increment value of counter by the input. Inputs may not be negative.
67+
* Increment value of counter by the input. Inputs must not be negative.
6868
*/
6969
add(value: number, attributes?: AttributesTypes, context?: Context): void;
7070
}

0 commit comments

Comments
 (0)