Skip to content

Commit

Permalink
Addressed Terrence's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwitten committed Jun 24, 2020
1 parent fdd7740 commit 718dc7d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ import { sendWithBeacon, sendWithXhr } from './util';

const DEFAULT_COLLECTOR_URL = 'http://localhost:55678/v1/trace';

/**
* Collector Metric Exporter for Web
*/
export class CollectorMetricExporter extends CollectorMetricExporterBase<
CollectorExporterConfigBrowser
> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { sendWithBeacon, sendWithXhr } from './util';
const DEFAULT_COLLECTOR_URL = 'http://localhost:55678/v1/trace';

/**
* Collector Exporter for Web
* Collector Trace Exporter for Web
*/
export class CollectorTraceExporter extends CollectorTraceExporterBase<
CollectorExporterConfigBrowser
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { CollectorMetricExporterBase } from '../../CollectorMetricExporterBase';
const DEFAULT_COLLECTOR_URL = 'localhost:55678';

/**
* Collector Exporter for Node
* Collector Metric Exporter for Node
*/
export class CollectorMetricExporter extends CollectorMetricExporterBase<
CollectorExporterConfigNode
Expand Down Expand Up @@ -91,6 +91,7 @@ export class CollectorMetricExporter extends CollectorMetricExporterBase<
onError: (error: collectorTypes.CollectorExporterError) => void
): void {
if (this.isShutDown) {
this.logger.debug('Shutdown already started. Cannot send metrics');
return;
}
if (this.metricServiceClient) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { removeProtocol } from './util';
const DEFAULT_COLLECTOR_URL = 'localhost:55678';

/**
* Collector Exporter for Node
* Collector Trace Exporter for Node
*/
export class CollectorTraceExporter extends CollectorTraceExporterBase<
CollectorExporterConfigNode
Expand Down Expand Up @@ -100,6 +100,7 @@ export class CollectorTraceExporter extends CollectorTraceExporterBase<
onError: (error: CollectorExporterError) => void
): void {
if (this.isShutDown) {
this.logger.debug('Shutdown already started. Cannot send spans');
return;
}
if (this.traceServiceClient) {
Expand Down

0 comments on commit 718dc7d

Please sign in to comment.