File tree 2 files changed +6
-3
lines changed
experimental/packages/opentelemetry-instrumentation-fetch/src
packages/opentelemetry-sdk-trace-web/src
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,10 @@ export class FetchInstrumentation extends InstrumentationBase<
133
133
parsedUrl . protocol . replace ( ':' , '' )
134
134
) ;
135
135
if ( typeof navigator !== 'undefined' ) {
136
- span . setAttribute ( SemanticAttributes . HTTP_USER_AGENT , navigator . userAgent ) ;
136
+ span . setAttribute (
137
+ SemanticAttributes . HTTP_USER_AGENT ,
138
+ navigator . userAgent
139
+ ) ;
137
140
}
138
141
}
139
142
Original file line number Diff line number Diff line change @@ -131,8 +131,8 @@ export function sortResources(
131
131
} ) ;
132
132
}
133
133
134
- /** Returns the origin if present (if in browser context) */
135
- function getOrigin ( ) : string | undefined {
134
+ /** Returns the origin if present (if in browser context). */
135
+ function getOrigin ( ) : string | undefined {
136
136
return typeof location !== 'undefined' ? location . origin : undefined ;
137
137
}
138
138
You can’t perform that action at this time.
0 commit comments