Skip to content

Commit 738752c

Browse files
remove StopWatch, some slight change.
1 parent 4a2ef2a commit 738752c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

instrumentation-annotations/src/main/java/io/opentelemetry/instrumentation/annotations/Counted.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
*
5151
* <p>Description strings should follow the instrument description rules: <a
5252
* href="https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#instrument-description">https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#instrument-description</a>
53+
*
5354
* <p>This property would not take effect if the value is not specified.
5455
*/
5556
String description() default "";
@@ -59,6 +60,7 @@
5960
*
6061
* <p>Unit strings should follow the instrument unit rules: <a
6162
* href="https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#instrument-unit">https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#instrument-unit</a>
63+
*
6264
* <p>This property would not take effect if the value is not specified.
6365
*/
6466
String unit() default "{invocation}";
@@ -83,7 +85,9 @@
8385
*
8486
* <p>The name of the attribute for the return value of the method call. {@link Object#toString()}
8587
* will be called on the return value to convert it to a String.
88+
*
8689
* <p>By default, the instrument will not have an attribute with the return value.
90+
*
8791
* <p>Warning: be careful to fill it because it might cause an explosion of the cardinality on
8892
* your metric
8993
*/

instrumentation-annotations/src/main/java/io/opentelemetry/instrumentation/annotations/Timed.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@
8080
*
8181
* <p>The name of the attribute for the return value of the method call. {@link Object#toString()}
8282
* will be called on the return value to convert it to a String.
83+
*
8384
* <p>By default, the instrument will not have an attribute with the return value.
85+
*
8486
* <p>Warning: be careful to fill it because it might cause an explosion of the cardinality on
8587
* your metric
8688
*/

0 commit comments

Comments
 (0)