Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/getsentry/sentry-javascript
/ safeDateNow
Function
safeDateNow
packages/core/src/utils/randomSafeContext.ts:41–43 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
39
* to ensure safe time value generation in certain contexts (e.g., Next.js Cache Components).
40
*/
41
export
function
safeDateNow(): number {
42
return
withRandomSafeContext(() => Date.now());
43
}
Callers
12
createSessionEnvelope
Function · 0.90
createSpanEnvelope
Function · 0.90
createCheckInEnvelope
Function · 0.90
createEventEnvelopeHeaders
Function · 0.90
dateTimestampInSeconds
Function · 0.90
getBrowserTimeOrigin
Function · 0.90
parseRetryAfterHeader
Function · 0.90
isRateLimited
Function · 0.90
updateRateLimits
Function · 0.90
recordRequestSession
Function · 0.90
createStreamedSpanEnvelope
Function · 0.90
flushIn
Function · 0.90
Calls
2
withRandomSafeContext
Function · 0.85
now
Method · 0.65
Tested by
no test coverage detected