File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
plugins/web/opentelemetry-instrumentation-document-load/src Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,11 @@ export class DocumentLoadInstrumentation extends InstrumentationBase<DocumentLoa
117117 if ( fetchSpan ) {
118118 fetchSpan . setAttribute ( SEMATTRS_HTTP_URL , location . href ) ;
119119 context . with ( trace . setSpan ( context . active ( ) , fetchSpan ) , ( ) => {
120- addSpanNetworkEvents ( fetchSpan , entries , this . getConfig ( ) . ignoreNetworkEvents ) ;
120+ addSpanNetworkEvents (
121+ fetchSpan ,
122+ entries ,
123+ this . getConfig ( ) . ignoreNetworkEvents
124+ ) ;
121125 this . _addCustomAttributesOnSpan (
122126 fetchSpan ,
123127 this . getConfig ( ) . applyCustomAttributesOnSpan ?. documentFetch
@@ -203,7 +207,11 @@ export class DocumentLoadInstrumentation extends InstrumentationBase<DocumentLoa
203207 ) ;
204208 if ( span ) {
205209 span . setAttribute ( SEMATTRS_HTTP_URL , resource . name ) ;
206- addSpanNetworkEvents ( span , resource , this . getConfig ( ) . ignoreNetworkEvents ) ;
210+ addSpanNetworkEvents (
211+ span ,
212+ resource ,
213+ this . getConfig ( ) . ignoreNetworkEvents
214+ ) ;
207215 this . _addCustomAttributesOnResourceSpan (
208216 span ,
209217 resource ,
You can’t perform that action at this time.
0 commit comments