reservoir
v1.47.0
go.opentelemetry.io/otel/sdk/metric/internal/reservoir
Documentation
pkg.go.dev ↗Package reservoir contains experimental features used by built-in exemplar reservoirs which require coordination with the metrics SDK.
Types
ConcurrentSafe
type ConcurrentSafe interface {
// contains filtered or unexported methods
}
ConcurrentSafe is an interface that can be embedded in an exemplar.Reservoir to indicate to the SDK that it is safe to invoke its methods concurrently. If this interface is not embedded, the SDK assumes it is not safe to call concurrently and locks around Reservoir methods. This is currently only used by the built-in reservoirs.