File tree 2 files changed +8
-11
lines changed
packages/opentelemetry-metrics/src
2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import {
28
28
import { LabelSet } from './LabelSet' ;
29
29
import { Batcher , UngroupedBatcher } from './export/Batcher' ;
30
30
import { PushController } from './export/Controller' ;
31
- import { NoopExporter } from '../test/mocks/Exporter ' ;
31
+ import { NoopExporter } from './export/NoopExporter ' ;
32
32
33
33
/**
34
34
* Meter is an implementation of the {@link Meter} interface.
Original file line number Diff line number Diff line change 1
1
/*!
2
- * Copyright 2019 , OpenTelemetry Authors
2
+ * Copyright 2020 , OpenTelemetry Authors
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
14
14
* limitations under the License.
15
15
*/
16
16
17
- import { MetricExporter , MetricRecord } from '../../src/export /types' ;
17
+ import { MetricExporter , MetricRecord } from './types' ;
18
18
import { ExportResult } from '@opentelemetry/base' ;
19
- import { EventEmitter } from 'events' ;
20
19
21
- export class NoopExporter extends EventEmitter implements MetricExporter {
20
+ export class NoopExporter implements MetricExporter {
21
+ // By default does nothing
22
22
export (
23
23
metrics : MetricRecord [ ] ,
24
24
resultCallback : ( result : ExportResult ) => void
25
- ) : void {
26
- this . emit ( 'export' , metrics , resultCallback ) ;
27
- }
25
+ ) : void { }
28
26
29
- shutdown ( ) : void {
30
- this . emit ( 'shutdown' ) ;
31
- }
27
+ // By default does nothing
28
+ shutdown ( ) : void { }
32
29
}
You can’t perform that action at this time.
0 commit comments