@@ -27,7 +27,7 @@ import {
2727 Histogram ,
2828} from '@opentelemetry/sdk-metrics-base' ;
2929import * as sinon from 'sinon' ;
30- import { PrometheusSerializer } from '../src/PrometheusSerializer ' ;
30+ import { PrometheusSerializer } from '../src' ;
3131import { mockedHrTimeMs , mockHrTime } from './util' ;
3232
3333const attributes = {
@@ -86,7 +86,7 @@ describe('PrometheusSerializer', () => {
8686 const pointData = metric . dataPoints as DataPoint < number > [ ] ;
8787 assert . strictEqual ( pointData . length , 1 ) ;
8888
89- const result = serializer . serializeSingularDataPoint ( metric . descriptor . name , metric . descriptor . type , pointData [ 0 ] ) ;
89+ const result = serializer [ '_serializeSingularDataPoint' ] ( metric . descriptor . name , metric . descriptor . type , pointData [ 0 ] ) ;
9090 return result ;
9191 }
9292
@@ -129,7 +129,7 @@ describe('PrometheusSerializer', () => {
129129 const pointData = metric . dataPoints as DataPoint < Histogram > [ ] ;
130130 assert . strictEqual ( pointData . length , 1 ) ;
131131
132- const result = serializer . serializeHistogramDataPoint ( metric . descriptor . name , metric . descriptor . type , pointData [ 0 ] ) ;
132+ const result = serializer [ '_serializeHistogramDataPoint' ] ( metric . descriptor . name , metric . descriptor . type , pointData [ 0 ] ) ;
133133 return result ;
134134 }
135135
@@ -184,7 +184,7 @@ describe('PrometheusSerializer', () => {
184184 assert . strictEqual ( resourceMetrics . scopeMetrics [ 0 ] . metrics . length , 1 ) ;
185185 const scopeMetrics = resourceMetrics . scopeMetrics [ 0 ] ;
186186
187- const result = serializer . serializeScopeMetrics ( scopeMetrics ) ;
187+ const result = serializer [ '_serializeScopeMetrics' ] ( scopeMetrics ) ;
188188 return result ;
189189 }
190190
@@ -236,7 +236,7 @@ describe('PrometheusSerializer', () => {
236236 assert . strictEqual ( resourceMetrics . scopeMetrics [ 0 ] . metrics . length , 1 ) ;
237237 const scopeMetrics = resourceMetrics . scopeMetrics [ 0 ] ;
238238
239- const result = serializer . serializeScopeMetrics ( scopeMetrics ) ;
239+ const result = serializer [ '_serializeScopeMetrics' ] ( scopeMetrics ) ;
240240 return result ;
241241 }
242242
@@ -284,7 +284,7 @@ describe('PrometheusSerializer', () => {
284284 const pointData = metric . dataPoints as DataPoint < number > [ ] ;
285285 assert . strictEqual ( pointData . length , 1 ) ;
286286
287- const result = serializer . serializeSingularDataPoint ( metric . descriptor . name , metric . descriptor . type , pointData [ 0 ] ) ;
287+ const result = serializer [ '_serializeSingularDataPoint' ] ( metric . descriptor . name , metric . descriptor . type , pointData [ 0 ] ) ;
288288 return result ;
289289 }
290290
@@ -323,7 +323,7 @@ describe('PrometheusSerializer', () => {
323323 const pointData = metric . dataPoints as DataPoint < number > [ ] ;
324324 assert . strictEqual ( pointData . length , 1 ) ;
325325
326- const result = serializer . serializeSingularDataPoint ( metric . descriptor . name , metric . descriptor . type , pointData [ 0 ] ) ;
326+ const result = serializer [ '_serializeSingularDataPoint' ] ( metric . descriptor . name , metric . descriptor . type , pointData [ 0 ] ) ;
327327 return result ;
328328 }
329329
0 commit comments