Skip to content

Commit dc51dd1

Browse files
committed
lint fix
1 parent 9566119 commit dc51dd1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/opentelemetry/lib/tracing/exporterFactory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function buildExporter (exporterType, config = null) {
2222
case AVAILABLE_EXPORTERS.JAEGER:
2323
return new JaegerExporter(config);
2424
case AVAILABLE_EXPORTERS.ZIPKIN:
25-
return new ZipkinExporter(config);
25+
return new ZipkinExporter(config || undefined);
2626
case AVAILABLE_EXPORTERS.PROMETHEUS:
2727
return new PrometheusExporter(config || {});
2828
case AVAILABLE_EXPORTERS.CONSOLE:

packages/opentelemetry/lib/tracing/tracerProvider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const DEFAULT_SERVICE_NAME = 'appium';
1717
class TracerProvider {
1818
constructor (serviceName = DEFAULT_SERVICE_NAME) {
1919
this.provider = new NodeTracerProvider({
20-
resource: new Resource({ [SemanticResourceAttributes.SERVICE_NAME]: serviceName }),
20+
resource: new Resource({ [SemanticResourceAttributes.SERVICE_NAME]: serviceName }),
2121
});
2222
this.exporterInstances = {};
2323
this._currentConfig = {

0 commit comments

Comments
 (0)