UNPKG

@google-cloud/spanner

Version:
37 lines (36 loc) 2.28 kB
import { View } from '@opentelemetry/sdk-metrics'; export declare const SPANNER_METER_NAME = "spanner-nodejs"; export declare const CLIENT_METRICS_PREFIX = "spanner.googleapis.com/internal/client"; export declare const SPANNER_RESOURCE_TYPE = "spanner_instance_client"; export declare const TRACER_CLEANUP_THRESHOLD_MS: number; export declare const TRACER_CLEANUP_INTERVAL_MS: number; export declare const ATTR_CLOUD_REGION = "cloud.region"; export declare const MIN_EXPORT_FREQUENCY_MS: number; export declare const MONITORED_RES_LABEL_KEY_PROJECT = "project_id"; export declare const MONITORED_RES_LABEL_KEY_INSTANCE = "instance_id"; export declare const MONITORED_RES_LABEL_KEY_INSTANCE_CONFIG = "instance_config"; export declare const MONITORED_RES_LABEL_KEY_LOCATION = "location"; export declare const MONITORED_RES_LABEL_KEY_CLIENT_HASH = "client_hash"; export declare const MONITORED_RESOURCE_LABELS: Set<string>; export declare const METRIC_LABEL_KEY_CLIENT_UID = "client_uid"; export declare const METRIC_LABEL_KEY_CLIENT_NAME = "client_name"; export declare const METRIC_LABEL_KEY_DATABASE = "database"; export declare const METRIC_LABEL_KEY_METHOD = "method"; export declare const METRIC_LABEL_KEY_STATUS = "status"; export declare const METRIC_LABELS: Set<string>; export declare const METRIC_NAME_OPERATION_LATENCIES = "operation_latencies"; export declare const METRIC_NAME_ATTEMPT_LATENCIES = "attempt_latencies"; export declare const METRIC_NAME_OPERATION_COUNT = "operation_count"; export declare const METRIC_NAME_ATTEMPT_COUNT = "attempt_count"; export declare const METRIC_NAME_GFE_LATENCIES = "gfe_latencies"; export declare const METRIC_NAME_GFE_CONNECTIVITY_ERROR_COUNT = "gfe_connectivity_error_count"; export declare const METRIC_NAME_AFE_LATENCIES = "afe_latencies"; export declare const METRIC_NAME_AFE_CONNECTIVITY_ERROR_COUNT = "afe_connectivity_error_count"; export declare const METRIC_NAMES: Set<string>; export declare const UNKNOWN_ATTRIBUTE = "unknown"; export declare const HISTOGRAM_BUCKET_BOUNDARIES: number[]; export declare const OPERATION_LATENCY_VIEW: View; export declare const ATTEMPT_LATENCY_VIEW: View; export declare const GFE_LATENCY_VIEW: View; export declare const AFE_LATENCY_VIEW: View; export declare const METRIC_VIEWS: View[];