The round parameter is required by bvar::Collected interface but unused here. Other implementations (e.g., SampledRequest in rpc_dump.cpp) use it to detect new batches and trigger per-round operations like reloading gflags or switching output files. SpanContainer doesn't need batch-level operations since it writes directly to leveldb without buffering or configuration reloading.
| 909 | // output files. SpanContainer doesn't need batch-level operations since it writes |
| 910 | // directly to leveldb without buffering or configuration reloading. |
| 911 | void SpanContainer::dump_and_destroy(size_t round) { |
| 912 | if (_span) { |
| 913 | _span->dump_to_db(); |
| 914 | } |
| 915 | destroy(); |
| 916 | } |
| 917 | |
| 918 | void SpanContainer::submit(int64_t cpuwide_us) { |
| 919 | bvar::Collected::submit(cpuwide_us); |