Skip to content

Commit

Permalink
Add @threadsafe annotation to Bounds (#820)
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Cristian Drutu <[email protected]>
  • Loading branch information
bogdandrutu authored Feb 5, 2020
1 parent c2843a1 commit 7365426
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public interface DoubleCounter extends Counter<BoundDoubleCounter> {
*
* @since 0.1.0
*/
@ThreadSafe
interface BoundDoubleCounter {
/**
* Adds the given {@code delta} to the current value. The values can be negative iff monotonic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public interface DoubleGauge extends Gauge<BoundDoubleGauge> {
*
* @since 0.1.0
*/
@ThreadSafe
interface BoundDoubleGauge {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public interface LongCounter extends Counter<BoundLongCounter> {
*
* @since 0.1.0
*/
@ThreadSafe
interface BoundLongCounter {

/**
Expand Down
1 change: 1 addition & 0 deletions api/src/main/java/io/opentelemetry/metrics/LongGauge.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public interface LongGauge extends Gauge<BoundLongGauge> {
*
* @since 0.1.0
*/
@ThreadSafe
interface BoundLongGauge {

/**
Expand Down

0 comments on commit 7365426

Please sign in to comment.