File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 10
10
"build" : " lerna run copyfiles && node ./scripts/build.js" ,
11
11
"watch" : " lerna run copyfiles && node ./scripts/build.js --watch" ,
12
12
"bootstrap" : " lerna bootstrap --no-ci" ,
13
- "test" : " run-s \" test:*\" " ,
13
+ "test" : " lerna run copyfiles && node ./scripts/build.js && run-s \" test:*\" " ,
14
14
"test:lint" : " lerna exec --stream -- npx eslint ." ,
15
15
"test:unit" : " lerna run --stream test:unit" ,
16
16
"test:e2e" : " lerna run --stream test:e2e" ,
Original file line number Diff line number Diff line change @@ -18,8 +18,10 @@ class Tracer {
18
18
*/
19
19
createSpanObject ( name , parentSpan = null , spanOptions = null ) {
20
20
//TODO - verify setting context from parentSpan
21
- const context = parentSpan ? setSpan ( TraceAPI . context . active ( ) , parentSpan ) : null ;
22
- return this . _tracer . startSpan ( name , spanOptions , context ) ;
21
+ const context = parentSpan ? parentSpan . context ( ) : TraceAPI . context . active ( ) ;
22
+ const span = this . _tracer . startSpan ( name , spanOptions , context ) ;
23
+ setSpan ( context , span ) ;
24
+ return span ;
23
25
}
24
26
25
27
/**
You can’t perform that action at this time.
0 commit comments