Skip to content

Commit

Permalink
docs: add pendingSize comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kruskall committed Jan 4, 2024
1 parent de0230b commit ac8f074
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x-pack/apm-server/sampling/eventstorage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ var (
// Storage provides storage for sampled transactions and spans,
// and for recording trace sampling decisions.
type Storage struct {
db *badger.DB
db *badger.DB
// pendingSize tracks the total size of pending writes across ReadWriters
pendingSize *atomic.Int64
codec Codec
}
Expand Down Expand Up @@ -96,6 +97,7 @@ type ReadWriter struct {
// be unmodified until the end of a transaction.
readKeyBuf []byte
pendingWrites int
// pendingSize tracks the size of pending writes in the current ReadWriter
pendingSize int64
}

Expand Down

0 comments on commit ac8f074

Please sign in to comment.