Skip to content

Commit

Permalink
feat(rum): add redirect span for same-origin redirect (#1400)
Browse files Browse the repository at this point in the history
Signed-off-by: Adrien Mannocci <[email protected]>
  • Loading branch information
devcorpio authored and amannocci committed Jul 31, 2023
1 parent e66ae8f commit bcd14bf
Show file tree
Hide file tree
Showing 17 changed files with 776 additions and 411 deletions.
2 changes: 1 addition & 1 deletion packages/rum-core/src/common/compress.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { Promise } from './polyfills'
import {
NAVIGATION_TIMING_MARKS,
COMPRESSED_NAV_TIMING_MARKS
} from '../performance-monitoring/capture-navigation'
} from '../performance-monitoring/navigation/marks'
import { isBeaconInspectionEnabled } from './utils'

/**
Expand Down
8 changes: 7 additions & 1 deletion packages/rum-core/src/common/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,11 @@ function isBeaconInspectionEnabled() {
return false
}

// redirect info is only available for same-origin redirects
function isRedirectInfoAvailable(timing) {
return timing.redirectStart > 0
}

export {
extend,
merge,
Expand Down Expand Up @@ -470,5 +475,6 @@ export {
isPerfTimelineSupported,
isBrowser,
isPerfTypeSupported,
isBeaconInspectionEnabled
isBeaconInspectionEnabled,
isRedirectInfoAvailable
}
Loading

0 comments on commit bcd14bf

Please sign in to comment.