pub fn register_with(registry: &MetricsRegistry) -> Self {
        Metrics {
            stream_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_stream_count",
                help: "count of non-destroyed persistent streams",
            )),
            meta_size_bytes: registry.register_third_party_visible(metric!(
                name: "mz_persist_meta_size_bytes",
                help: "size of the most recently generated META record",
            )),
            unsealed_blob_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_unsealed_blob_count",
                help: "count of all blobs containing unsealed records",
            )),
            unsealed_blob_bytes: registry.register_third_party_visible(metric!(
                name: "mz_persist_unsealed_blob_bytes",
                help: "total size of all blobs containing unsealed records",
            )),
            trace_blob_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_trace_blob_count",
                help: "count of all blobs containing sealed records",
            )),
            trace_blob_bytes: registry.register_third_party_visible(metric!(
                name: "mz_persist_trace_blob_bytes",
                help: "total size of all blobs containing sealed records",
            )),
            cmd_queue_in: registry.register_third_party_visible(metric!(
                name: "mz_persist_cmd_queue_in",
                help: "count of commands entering the runtime channel",
            )),
            cmd_run_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_cmd_run_count",
                help: "count of commands run",
            )),
            cmd_run_seconds: registry.register_third_party_visible(metric!(
                name: "mz_persist_cmd_run_seconds",
                help: "time spent running commands",
            )),
            cmd_failed_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_cmd_failed_count",
                help: "count of commands run where an error was returned",
            )),
            cmd_step_seconds: registry.register_third_party_visible(metric!(
                name: "mz_persist_cmd_step_seconds",
                help: "time spent in step",
            )),
            cmd_step_error_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_cmd_step_error_count",
                help: "count of errors returned by cmd step",
            )),
            compaction_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_compaction_count",
                help: "count of times unsealed and trace compaction occurred",
            )),
            compaction_seconds: registry.register_third_party_visible(metric!(
                name: "mz_persist_compaction_seconds",
                help: "time spent compacting unsealed and trace",
            )),
            compaction_write_bytes: registry.register_third_party_visible(metric!(
                name: "mz_persist_compaction_bytes",
                help: "bytes written compacting unsealed and trace",
            )),
            cmd_write_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_cmd_write_count",
                help: "count of write commands run",
            )),
            cmd_write_record_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_cmd_write_record_count",
                help: "total count of records written in all streams",
            )),
            cmd_write_record_bytes: registry.register_third_party_visible(metric!(
                name: "mz_persist_cmd_write_record_bytes",
                help: "total count of records written in all streams",
            )),
            unsealed: BlobMetricsByType::register_with("unsealed", registry),
            trace: BlobMetricsByType::register_with("trace", registry),
            meta: BlobMetricsByType::register_with("meta", registry),
            blob_write_error_quota_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_blob_write_error_quota_count",
                help: "count of blob storage writes failing because storage is out of space/quota",
            )),
            blob_write_error_other_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_blob_write_error_other_count",
                help: "count of blob storage writes failing for other reasons",
            )),
            blob_read_cache_hit_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_blob_read_cache_hit_count",
                help: "count of blob reads served by cached data",
            )),
            blob_read_cache_miss_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_blob_read_cache_miss_count",
                help: "count of blob reads that had to be fetched",
            )),
            blob_read_cache_fetch_bytes: registry.register_third_party_visible(metric!(
                name: "mz_persist_blob_read_cache_fetch_bytes",
                help: "total size of blob reads that had to be fetched",
            )),
        }
    }
/// Returns a new [Metrics] instance connected to the given registry.
Returns a new [Metrics] instance connected to the given registry.
Returns a new [ Metrics ] instance connected to the given registry .
pub fn register_with(registry: &MetricsRegistry) -> Self {
        Metrics {
            stream_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_stream_count",
                help: "count of non-destroyed persistent streams",
            )),
            meta_size_bytes: registry.register_third_party_visible(metric!(
                name: "mz_persist_meta_size_bytes",
                help: "size of the most recently generated META record",
            )),
            unsealed_blob_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_unsealed_blob_count",
                help: "count of all blobs containing unsealed records",
            )),
            unsealed_blob_bytes: registry.register_third_party_visible(metric!(
                name: "mz_persist_unsealed_blob_bytes",
                help: "total size of all blobs containing unsealed records",
            )),
            trace_blob_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_trace_blob_count",
                help: "count of all blobs containing sealed records",
            )),
            trace_blob_bytes: registry.register_third_party_visible(metric!(
                name: "mz_persist_trace_blob_bytes",
                help: "total size of all blobs containing sealed records",
            )),
            cmd_queue_in: registry.register_third_party_visible(metric!(
                name: "mz_persist_cmd_queue_in",
                help: "count of commands entering the runtime channel",
            )),
            cmd_run_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_cmd_run_count",
                help: "count of commands run",
            )),
            cmd_run_seconds: registry.register_third_party_visible(metric!(
                name: "mz_persist_cmd_run_seconds",
                help: "time spent running commands",
            )),
            cmd_failed_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_cmd_failed_count",
                help: "count of commands run where an error was returned",
            )),
            cmd_step_seconds: registry.register_third_party_visible(metric!(
                name: "mz_persist_cmd_step_seconds",
                help: "time spent in step",
            )),
            cmd_step_error_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_cmd_step_error_count",
                help: "count of errors returned by cmd step",
            )),
            compaction_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_compaction_count",
                help: "count of times unsealed and trace compaction occurred",
            )),
            compaction_seconds: registry.register_third_party_visible(metric!(
                name: "mz_persist_compaction_seconds",
                help: "time spent compacting unsealed and trace",
            )),
            compaction_write_bytes: registry.register_third_party_visible(metric!(
                name: "mz_persist_compaction_bytes",
                help: "bytes written compacting unsealed and trace",
            )),
            cmd_write_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_cmd_write_count",
                help: "count of write commands run",
            )),
            cmd_write_record_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_cmd_write_record_count",
                help: "total count of records written in all streams",
            )),
            cmd_write_record_bytes: registry.register_third_party_visible(metric!(
                name: "mz_persist_cmd_write_record_bytes",
                help: "total count of records written in all streams",
            )),
            unsealed: BlobMetricsByType::register_with("unsealed", registry),
            trace: BlobMetricsByType::register_with("trace", registry),
            meta: BlobMetricsByType::register_with("meta", registry),
            blob_write_error_quota_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_blob_write_error_quota_count",
                help: "count of blob storage writes failing because storage is out of space/quota",
            )),
            blob_write_error_other_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_blob_write_error_other_count",
                help: "count of blob storage writes failing for other reasons",
            )),
            blob_read_cache_hit_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_blob_read_cache_hit_count",
                help: "count of blob reads served by cached data",
            )),
            blob_read_cache_miss_count: registry.register_third_party_visible(metric!(
                name: "mz_persist_blob_read_cache_miss_count",
                help: "count of blob reads that had to be fetched",
            )),
            blob_read_cache_fetch_bytes: registry.register_third_party_visible(metric!(
                name: "mz_persist_blob_read_cache_fetch_bytes",
                help: "total size of blob reads that had to be fetched",
            )),
        }
    }
pub fn register_with ( registry : & MetricsRegistry ) -> Self { Metrics { stream_count : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , meta_size_bytes : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , unsealed_blob_count : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , unsealed_blob_bytes : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , trace_blob_count : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , trace_blob_bytes : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , cmd_queue_in : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , cmd_run_count : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , cmd_run_seconds : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , cmd_failed_count : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , cmd_step_seconds : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , cmd_step_error_count : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , compaction_count : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , compaction_seconds : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , compaction_write_bytes : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , cmd_write_count : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , cmd_write_record_count : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , cmd_write_record_bytes : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , unsealed : BlobMetricsByType :: register_with ( " " , registry ) , trace : BlobMetricsByType :: register_with ( " " , registry ) , meta : BlobMetricsByType :: register_with ( " " , registry ) , blob_write_error_quota_count : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , blob_write_error_other_count : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , blob_read_cache_hit_count : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , blob_read_cache_miss_count : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , blob_read_cache_fetch_bytes : registry . register_third_party_visible ( metric ! ( name " " help " " ) ) , } }
Returns a new [Metrics] instance connected to the given registry.
Returns a new [ Metrics ] instance connected to the given registry .
registry
&MetricsRegistry
registry
&MetricsRegistry