1414 * limitations under the License.
1515 */
1616
17- import * as cls from '../../internal/cls' ;
17+ import * as cls from '../../internal/cls'
1818import { Trace } from './trace'
1919import { Span } from './span'
2020import { debug } from '../../internal/util'
2121import { Stackdriver } from '../../exporters/stackdriver/stackdriver'
2222import { StackdriverOptions } from '../../exporters/stackdriver/options'
23- import { Exporter } from '../../exporters/exporter' ;
23+ import { Exporter } from '../../exporters/exporter'
2424
2525export type Func < T > = ( ...args : any [ ] ) => T ;
2626
2727export class Tracer {
2828
29- readonly PLUGINS = [ 'http' , 'https' , 'mongodb-core' , 'express' ]
29+ readonly PLUGINS = [ 'http' , 'https' , 'mongodb-core' , 'express' ] ;
3030
3131 private _active : boolean ;
3232 private contextManager : cls . Namespace ;
@@ -65,7 +65,9 @@ export class Tracer {
6565 }
6666
6767 public endTrace ( ) : void {
68- if ( ! this . currentTrace ) return debug ( 'cannot end trace - no active trace found' )
68+ if ( ! this . currentTrace ) {
69+ return debug ( 'cannot end trace - no active trace found' )
70+ }
6971 this . currentTrace . end ( ) ;
7072 this . addEndedTrace ( this . currentTrace ) ;
7173 //this.clearCurrentTrace();
@@ -80,7 +82,7 @@ export class Tracer {
8082 if ( ! this . currentTrace ) {
8183 debug ( 'no current trace found - cannot start a new span' ) ;
8284 } else {
83- newSpan = this . currentTrace . startSpan ( name , type )
85+ newSpan = this . currentTrace . startSpan ( name , type ) ;
8486 }
8587 return newSpan ;
8688 }
0 commit comments