1+ /*
2+ * Copyright The OpenTelemetry Authors
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * https://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
117'use strict' ;
218
319const opentelemetry = require ( '@opentelemetry/api' ) ;
@@ -10,7 +26,7 @@ const { registerInstrumentations } = require('@opentelemetry/instrumentation');
1026
1127const EXPORTER = process . env . EXPORTER || '' ;
1228
13- module . exports = ( serviceName ) => {
29+ module . exports = serviceName => {
1430 let exporter ;
1531 if ( EXPORTER . toLowerCase ( ) . startsWith ( 'z' ) ) {
1632 exporter = new ZipkinExporter ( {
@@ -23,9 +39,7 @@ module.exports = (serviceName) => {
2339 }
2440
2541 const provider = new NodeTracerProvider ( {
26- spanProcessors : [
27- new SimpleSpanProcessor ( exporter ) ,
28- ] ,
42+ spanProcessors : [ new SimpleSpanProcessor ( exporter ) ] ,
2943 } ) ;
3044
3145 // Initialize the OpenTelemetry APIs to use the NodeTracerProvider bindings
0 commit comments