diff --git a/packages/sdk-metrics/test/export/PeriodicExportingMetricReader.test.ts b/packages/sdk-metrics/test/export/PeriodicExportingMetricReader.test.ts index 1e637d21cf..e7feacbd1f 100644 --- a/packages/sdk-metrics/test/export/PeriodicExportingMetricReader.test.ts +++ b/packages/sdk-metrics/test/export/PeriodicExportingMetricReader.test.ts @@ -14,39 +14,22 @@ * limitations under the License. */ -import { PeriodicExportingMetricReader } from '../../src/export/PeriodicExportingMetricReader'; -import { AggregationTemporality } from '../../src/export/AggregationTemporality'; -import { - Aggregation, - CollectionResult, - InstrumentType, - MetricProducer, - PushMetricExporter, -} from '../../src'; -import { - DataPointType, - ResourceMetrics, - ScopeMetrics, -} from '../../src/export/MetricData'; +import {PeriodicExportingMetricReader} from '../../src/export/PeriodicExportingMetricReader'; +import {AggregationTemporality} from '../../src/export/AggregationTemporality'; +import {Aggregation, CollectionResult, InstrumentType, MetricProducer, PushMetricExporter,} from '../../src'; +import {DataPointType, ResourceMetrics, ScopeMetrics,} from '../../src/export/MetricData'; import * as assert from 'assert'; import * as sinon from 'sinon'; -import { TimeoutError } from '../../src/utils'; -import { - ExportResult, - ExportResultCode, - setGlobalErrorHandler, -} from '@opentelemetry/core'; -import { assertRejects } from '../test-utils'; -import { TestMetricProducer } from './TestMetricProducer'; -import { - assertAggregationSelector, - assertAggregationTemporalitySelector, -} from './utils'; +import {TimeoutError} from '../../src/utils'; +import {ExportResult, ExportResultCode, setGlobalErrorHandler,} from '@opentelemetry/core'; +import {assertRejects} from '../test-utils'; +import {TestMetricProducer} from './TestMetricProducer'; +import {assertAggregationSelector, assertAggregationTemporalitySelector,} from './utils'; import { DEFAULT_AGGREGATION_SELECTOR, DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR, } from '../../src/export/AggregationSelector'; -import { ValueType } from '@opentelemetry/api'; +import {ValueType} from '@opentelemetry/api'; const MAX_32_BIT_INT = 2 ** 31 - 1; @@ -157,6 +140,7 @@ describe('PeriodicExportingMetricReader', () => { descriptor: { name: '', description: '', + type: InstrumentType.GAUGE, unit: '', valueType: ValueType.INT, },