1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-26 21:05:00 +02:00

Corrent comments for the metric data storage location (#5999)

Replace the term "out" with "rm" for better clarity.
Original comments referred to "out", which can be ambiguous in this
context.
This commit is contained in:
ian 2024-11-25 17:29:04 +08:00 committed by GitHub
parent 8b510c36ed
commit e90ab80076
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,8 +60,8 @@ type Reader interface {
aggregation(InstrumentKind) Aggregation // nolint:revive // import-shadow for method scoped by type.
// Collect gathers and returns all metric data related to the Reader from
// the SDK and stores it in out. An error is returned if this is called
// after Shutdown or if out is nil.
// the SDK and stores it in rm. An error is returned if this is called
// after Shutdown or if rm is nil.
//
// This method needs to be concurrent safe, and the cancellation of the
// passed context is expected to be honored.