File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
instrumentation-annotations/src/main/java/io/opentelemetry/instrumentation/annotations Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 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 "" ;
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}" ;
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 */
Original file line number Diff line number Diff line change 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 */
You can’t perform that action at this time.
0 commit comments