| 1 |
// Copyright The OpenTelemetry Authors |
| 2 |
// SPDX-License-Identifier: Apache-2.0 |
| 3 |
|
| 4 |
package reservoir // import "go.opentelemetry.io/otel/sdk/metric/internal/reservoir" |
| 5 |
|
| 6 |
// ConcurrentSafe is an interface that can be embedded in an |
| 7 |
// exemplar.Reservoir to indicate to the SDK that it is safe to invoke its |
| 8 |
// methods concurrently. If this interface is not embedded, the SDK assumes it |
| 9 |
// is not safe to call concurrently and locks around Reservoir methods. This |
| 10 |
// is currently only used by the built-in reservoirs. |
| 11 |
type ConcurrentSafe interface{ concurrentSafe() } |