File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed
packages/opentelemetry-metrics/src Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import {
2828import { LabelSet } from './LabelSet' ;
2929import { Batcher , UngroupedBatcher } from './export/Batcher' ;
3030import { PushController } from './export/Controller' ;
31- import { NoopExporter } from '../test/mocks/Exporter ' ;
31+ import { NoopExporter } from './export/NoopExporter ' ;
3232
3333/**
3434 * Meter is an implementation of the {@link Meter} interface.
Original file line number Diff line number Diff line change 11/*!
2- * Copyright 2019 , OpenTelemetry Authors
2+ * Copyright 2020 , OpenTelemetry Authors
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1414 * limitations under the License.
1515 */
1616
17- import { MetricExporter , MetricRecord } from '../../src/export /types' ;
17+ import { MetricExporter , MetricRecord } from './types' ;
1818import { ExportResult } from '@opentelemetry/base' ;
19- import { EventEmitter } from 'events' ;
2019
21- export class NoopExporter extends EventEmitter implements MetricExporter {
20+ export class NoopExporter implements MetricExporter {
21+ // By default does nothing
2222 export (
2323 metrics : MetricRecord [ ] ,
2424 resultCallback : ( result : ExportResult ) => void
25- ) : void {
26- this . emit ( 'export' , metrics , resultCallback ) ;
27- }
25+ ) : void { }
2826
29- shutdown ( ) : void {
30- this . emit ( 'shutdown' ) ;
31- }
27+ // By default does nothing
28+ shutdown ( ) : void { }
3229}
You can’t perform that action at this time.
0 commit comments