@@ -46,17 +46,17 @@ describe('exportRootSpanAfterLoadEvent', () => {
4646 spyOn ( XMLHttpRequest . prototype , 'open' ) ;
4747 sendSpy = spyOn ( XMLHttpRequest . prototype , 'send' ) ;
4848 spyOn ( XMLHttpRequest . prototype , 'setRequestHeader' ) ;
49- realOcwAgent = windowWithOcwGlobals . ocwAgent ;
49+ realOcwAgent = windowWithOcwGlobals . ocAgent ;
5050 realTraceparent = windowWithOcwGlobals . traceparent ;
5151 } ) ;
5252 afterEach ( ( ) => {
5353 jasmine . clock ( ) . uninstall ( ) ;
54- windowWithOcwGlobals . ocwAgent = realOcwAgent ;
54+ windowWithOcwGlobals . ocAgent = realOcwAgent ;
5555 windowWithOcwGlobals . traceparent = realTraceparent ;
5656 } ) ;
5757
5858 it ( 'exports spans to agent if agent is configured' , ( ) => {
59- windowWithOcwGlobals . ocwAgent = 'http://agent' ;
59+ windowWithOcwGlobals . ocAgent = 'http://agent' ;
6060 windowWithOcwGlobals . traceparent = undefined ;
6161
6262 exportRootSpanAfterLoadEvent ( ) ;
@@ -68,7 +68,7 @@ describe('exportRootSpanAfterLoadEvent', () => {
6868 } ) ;
6969
7070 it ( 'does not export if agent not configured' , ( ) => {
71- windowWithOcwGlobals . ocwAgent = undefined ;
71+ windowWithOcwGlobals . ocAgent = undefined ;
7272 windowWithOcwGlobals . traceparent = undefined ;
7373
7474 exportRootSpanAfterLoadEvent ( ) ;
@@ -79,7 +79,7 @@ describe('exportRootSpanAfterLoadEvent', () => {
7979 } ) ;
8080
8181 it ( 'uses trace and span ID from window.traceparent if specified' , ( ) => {
82- windowWithOcwGlobals . ocwAgent = 'http://agent' ;
82+ windowWithOcwGlobals . ocAgent = 'http://agent' ;
8383 const traceId = '0af7651916cd43dd8448eb211c80319c' ;
8484 const spanId = 'b7ad6b7169203331' ;
8585 windowWithOcwGlobals . traceparent = `00-${ traceId } -${ spanId } -01` ;
@@ -97,7 +97,7 @@ describe('exportRootSpanAfterLoadEvent', () => {
9797 } ) ;
9898
9999 it ( 'does not export spans if traceparent sampling hint not set' , ( ) => {
100- windowWithOcwGlobals . ocwAgent = 'http://agent' ;
100+ windowWithOcwGlobals . ocAgent = 'http://agent' ;
101101 windowWithOcwGlobals . traceparent =
102102 '00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-00' ;
103103
0 commit comments