From 890926f5162694e3b2fc8b7e4ae20da9003566e7 Mon Sep 17 00:00:00 2001 From: Mayur Kale Date: Tue, 3 Mar 2020 08:43:35 -0800 Subject: [PATCH] chore: export Aggregator and LabelSet (#831) Co-authored-by: Daniel Dyla --- packages/opentelemetry-exporter-prometheus/src/prometheus.ts | 3 +-- packages/opentelemetry-metrics/src/index.ts | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/opentelemetry-exporter-prometheus/src/prometheus.ts b/packages/opentelemetry-exporter-prometheus/src/prometheus.ts index deb0c9c3766..6217993672c 100644 --- a/packages/opentelemetry-exporter-prometheus/src/prometheus.ts +++ b/packages/opentelemetry-exporter-prometheus/src/prometheus.ts @@ -28,8 +28,7 @@ import { createServer, IncomingMessage, Server, ServerResponse } from 'http'; import { Counter, Gauge, labelValues, Metric, Registry } from 'prom-client'; import * as url from 'url'; import { ExporterConfig } from './export/types'; -import { LabelSet } from '@opentelemetry/metrics/build/src/LabelSet'; -import { CounterSumAggregator } from '@opentelemetry/metrics/build/src/export/Aggregator'; +import { CounterSumAggregator, LabelSet } from '@opentelemetry/metrics'; export class PrometheusExporter implements MetricExporter { static readonly DEFAULT_OPTIONS = { diff --git a/packages/opentelemetry-metrics/src/index.ts b/packages/opentelemetry-metrics/src/index.ts index 2f61a985cb4..2ecd8b33957 100644 --- a/packages/opentelemetry-metrics/src/index.ts +++ b/packages/opentelemetry-metrics/src/index.ts @@ -14,9 +14,11 @@ * limitations under the License. */ +export * from './LabelSet'; export * from './BoundInstrument'; export * from './Meter'; export * from './Metric'; export * from './MeterProvider'; export * from './export/ConsoleMetricExporter'; export * from './export/types'; +export * from './export/Aggregator';