Skip to content

Commit

Permalink
feat(rum-core): add redirect span for same-origin redirect (#1400)
Browse files Browse the repository at this point in the history
  • Loading branch information
devcorpio authored Jul 31, 2023
1 parent e66ae8f commit 346b159
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 346b159

Please sign in to comment.