prometheus/storage/remote
Filip Petkovski 10a82f87fd
Enable reusing memory when converting between histogram types
The 'ToFloat' method on integer histograms currently allocates new memory
each time it is called.

This commit adds an optional *FloatHistogram parameter that can be used
to reuse span and bucket slices. It is up to the caller to make sure the
input float histogram is not used anymore after the call.

Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
2023-12-08 10:22:59 +01:00
..
azuread golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
otlptranslator Enable default revive rules (#13068) 2023-11-29 17:23:34 +00:00
chunked.go
chunked_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
client.go
client_test.go remote_write: add a unit test to make sure the write client sends 2023-11-09 15:56:48 +01:00
codec.go ci(lint): enable godot; append dot at the end of comments 2023-10-31 19:53:38 +02:00
codec_test.go Enable reusing memory when converting between histogram types 2023-12-08 10:22:59 +01:00
ewma.go
intern.go
intern_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
max_timestamp.go
metadata_watcher.go
metadata_watcher_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
queue_manager.go
queue_manager_test.go Enable reusing memory when converting between histogram types 2023-12-08 10:22:59 +01:00
read.go
read_handler.go ci(lint): enable errorlint on storage (#12935) 2023-10-31 12:15:30 +01:00
read_handler_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
read_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
storage.go remote/storage.go: adjust Storage.Notify() to avoid a race condition with Storage.ApplyConfig() 2023-11-14 10:07:45 +01:00
storage_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
write.go remote/storage.go: adjust Storage.Notify() to avoid a race condition with Storage.ApplyConfig() 2023-11-14 10:07:45 +01:00
write_handler.go Add suffixes 2023-11-15 15:52:18 +01:00
write_handler_test.go Enable reusing memory when converting between histogram types 2023-12-08 10:22:59 +01:00
write_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00