<commit_before>// Copyright 2016 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// See the License for the specific language governing permissions and
// limitations under the License.

use prometheus::{Counter, CounterVec, HistogramVec, exponential_buckets};

lazy_static! {
    pub static ref ASYNC_REQUESTS_COUNTER_VEC: CounterVec =
        register_counter_vec!(
            "tikv_storage_engine_async_request_total",
            "Total number of engine asynchronous requests",
            &["type", "status"]
        ).unwrap();

    pub static ref ASYNC_REQUESTS_DURATIONS_VEC: HistogramVec =
        register_histogram_vec!(
            histogram_opts!(
                "tikv_storage_engine_async_request_duration_seconds",
                "Bucketed histogram of processing successful asynchronous requests.",
                [exponential_buckets(0.0005, 2.0, 13).unwrap()]),
            &["type"]
        ).unwrap();

    pub static ref CURSOR_OVER_SEEK_BOUND_COUNTER: Counter =
        register_counter!(
            "tikv_storage_engine_cursor_over_seek_bound_total",
            "Total number of cursor next over seek bound number"
        ).unwrap();
}<commit_msg>engine: enlarge buckets (#1341)<commit_after>// Copyright 2016 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// See the License for the specific language governing permissions and
// limitations under the License.

use prometheus::{Counter, CounterVec, HistogramVec, exponential_buckets};

lazy_static! {
    pub static ref ASYNC_REQUESTS_COUNTER_VEC: CounterVec =
        register_counter_vec!(
            "tikv_storage_engine_async_request_total",
            "Total number of engine asynchronous requests",
            &["type", "status"]
        ).unwrap();

    pub static ref ASYNC_REQUESTS_DURATIONS_VEC: HistogramVec =
        register_histogram_vec!(
            histogram_opts!(
                "tikv_storage_engine_async_request_duration_seconds",
                "Bucketed histogram of processing successful asynchronous requests.",
                [exponential_buckets(0.0005, 2.0, 20).unwrap()]),
            &["type"]
        ).unwrap();

    pub static ref CURSOR_OVER_SEEK_BOUND_COUNTER: Counter =
        register_counter!(
            "tikv_storage_engine_cursor_over_seek_bound_total",
            "Total number of cursor next over seek bound number"
        ).unwrap();
}
{'fraction_non_alphanumeric': 0.08960104643557881, 'fraction_numerical': 0.012426422498364944, 'mean_word_length': 2.911764705882353, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2949596', 'n_tokens_mistral': 875, 'n_tokens_neox': 819, 'n_words': 265}