René's URL Explorer Experiment


Title: OTLP nanosecond timestamp overflow in webapp event repository · Issue #3292 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: OTLP nanosecond timestamp overflow in webapp event repository · Issue #3292 · triggerdotdev/trigger.dev

X Title: OTLP nanosecond timestamp overflow in webapp event repository · Issue #3292 · triggerdotdev/trigger.dev

Description: Several places in the webapp multiply epoch milliseconds by 1,000,000 before converting to BigInt, which causes IEEE 754 precision loss (~256ns errors in ~0.2% of cases). The result exceeds Number.MAX_SAFE_INTEGER (~9e15) since epoch-ms ...

Open Graph Description: Several places in the webapp multiply epoch milliseconds by 1,000,000 before converting to BigInt, which causes IEEE 754 precision loss (~256ns errors in ~0.2% of cases). The result exceeds Number....

X Description: Several places in the webapp multiply epoch milliseconds by 1,000,000 before converting to BigInt, which causes IEEE 754 precision loss (~256ns errors in ~0.2% of cases). The result exceeds Number....

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/3292

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OTLP nanosecond timestamp overflow in webapp event repository","articleBody":"Several places in the webapp multiply epoch milliseconds by 1,000,000 **before** converting to BigInt, which causes IEEE 754 precision loss (~256ns errors in ~0.2% of cases). The result exceeds `Number.MAX_SAFE_INTEGER` (~9e15) since epoch-ms * 1e6 is ~1.7e18.\n\nThe correct pattern is `BigInt(ms) * BigInt(1_000_000)` (multiplication after BigInt conversion). This already exists in `convertDateToNanoseconds()` in the same file - the buggy functions just didn't use it.\n\n**Affected locations:**\n\n1. `apps/webapp/app/v3/eventRepository/common.server.ts:24` - `getNowInNanoseconds()`\n   ```typescript\n   // Bug: multiplication in float-land\n   return BigInt(new Date().getTime() * 1_000_000);\n   // Fix:\n   return BigInt(new Date().getTime()) * BigInt(1_000_000);\n   ```\n\n2. `apps/webapp/app/v3/eventRepository/common.server.ts:38` - `calculateDurationFromStart()`\n   ```typescript\n   // Bug:\n   const duration = Number(BigInt($endtime.getTime() * 1_000_000) - startTime);\n   // Fix:\n   const duration = Number(BigInt($endtime.getTime()) * BigInt(1_000_000) - startTime);\n   ```\n\n3. `apps/webapp/app/v3/eventRepository/index.server.ts:217` - `recordRunDebugLog()`\n4. `apps/webapp/app/v3/runEngineHandlers.server.ts:431` - retry event recording\n\n**Impact:** Low. The errors are +-256 nanoseconds, which is unlikely to cause visible issues. But it's an easy fix and prevents any edge cases with span ordering.\n\n**Context:** Found during compute workload manager PR review (#3114). The supervisor's `msToNano()` was fixed in that PR using a split approach that also preserves sub-ms precision from `performance.now()` arithmetic.\n\nLinear: TRI-8269","author":{"url":"https://github.com/nicktrn","@type":"Person","name":"nicktrn"},"datePublished":"2026-03-29T11:58:47Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/3292"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:836246f4-d9a5-364e-e75d-4de153708a86
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD89A:8BE43:30AC2E4:4529C1E:6AFAE9E5
html-safe-nonce6ff586d79e84189d06372aabb63ad130bf44db06311ff0c6527cd29960c65692
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODlBOjhCRTQzOjMwQUMyRTQ6NDUyOUMxRTo2QUZBRTlFNSIsInZpc2l0b3JfaWQiOiIxNTkzODE0MTE1Njc3ODI1NTA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacaf2fc2199cc9b8e3887e8689dddc8c6053e77e56fd6c8a396c2adcc5ffcd52ce
hovercard-subject-tagissue:4163979632
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/3292/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8c31f119e92e751e62488322d6b84d8b66d671e50ecc95d81c37c92ba20c04a1/triggerdotdev/trigger.dev/issues/3292
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8c31f119e92e751e62488322d6b84d8b66d671e50ecc95d81c37c92ba20c04a1/triggerdotdev/trigger.dev/issues/3292
og:image:altSeveral places in the webapp multiply epoch milliseconds by 1,000,000 before converting to BigInt, which causes IEEE 754 precision loss (~256ns errors in ~0.2% of cases). The result exceeds Number....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenicktrn
hostnamegithub.com
expected-hostnamegithub.com
None0178036d8230524a18422872393ab7e708443ae4c2047f758560a2db870c1913
turbo-cache-controlno-preview
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release12fff95459b24b0f882a66698ee6a36a5934d247
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/issues/3292#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F3292
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F3292
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/3292
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/3292
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/3292
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests67 (67)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
https://github.com/triggerdotdev/trigger.dev
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/3292
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/3292
OTLP nanosecond timestamp overflow in webapp event repositoryhttps://github.com/triggerdotdev/trigger.dev/issues/3292#top
bugSomething isn't workinghttps://github.com/triggerdotdev/trigger.dev/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/nicktrn
nicktrnhttps://github.com/nicktrn
on Mar 29, 2026https://github.com/triggerdotdev/trigger.dev/issues/3292#issue-4163979632
#3114https://github.com/triggerdotdev/trigger.dev/pull/3114
nicktrnhttps://github.com/nicktrn
bugSomething isn't workinghttps://github.com/triggerdotdev/trigger.dev/issues?q=state%3Aopen%20label%3A%22bug%22
on Mar 29, 2026https://github.com/triggerdotdev/trigger.dev/issues/3292#event-24008972241
linearhttps://github.com/apps/linear
duplicatehttps://github.com/triggerdotdev/trigger.dev/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Aduplicate
on Mar 29, 2026https://github.com/triggerdotdev/trigger.dev/issues/3292#event-24008982194
nicktrnhttps://github.com/nicktrn
on Mar 29, 2026https://github.com/triggerdotdev/trigger.dev/issues/3292#event-24009009831
Yanhu007https://github.com/Yanhu007
on Apr 12, 2026https://github.com/triggerdotdev/trigger.dev/issues/3292#event-24416594552
fix: convert epoch-ms to BigInt before nanosecond multiplicationhttps://github.com/Yanhu007/trigger.dev/commit/26de74fd70a48f7c780e25aa14bbd291e71b210a
https://docs.github.com/articles/closing-issues-via-commit-messages
26de74fhttps://github.com/Yanhu007/trigger.dev/commit/26de74fd70a48f7c780e25aa14bbd291e71b210a
aayushbalunihttps://github.com/aayushbaluni
on Apr 15, 2026https://github.com/triggerdotdev/trigger.dev/issues/3292#event-24522846914
fix: prevent IEEE 754 precision loss in OTLP nanosecond timestampshttps://github.com/aayushbaluni/trigger.dev/commit/170c1f3fb086a4409529d8dd9b0b4856b1d16ef7
https://docs.github.com/articles/closing-issues-via-commit-messages
170c1f3https://github.com/aayushbaluni/trigger.dev/commit/170c1f3fb086a4409529d8dd9b0b4856b1d16ef7
fix: convert to BigInt before nanosecond multiplication in all instanceshttps://github.com/aayushbaluni/trigger.dev/commit/65e5e3872f7f369d12f737c20c24846899bf36e0
https://docs.github.com/articles/closing-issues-via-commit-messages
65e5e38https://github.com/aayushbaluni/trigger.dev/commit/65e5e3872f7f369d12f737c20c24846899bf36e0
avasis-aihttps://github.com/avasis-ai
on Apr 15, 2026https://github.com/triggerdotdev/trigger.dev/issues/3292#event-24527764021
fix: OTLP nanosecond timestamp overflow from IEEE 754 precision losshttps://github.com/avasis-ai/trigger.dev/commit/c10ca6d5553a3da7aaa5825ff4e1e1d49119e6ce
https://docs.github.com/articles/closing-issues-via-commit-messages
c10ca6dhttps://github.com/avasis-ai/trigger.dev/commit/c10ca6d5553a3da7aaa5825ff4e1e1d49119e6ce
https://github.com/aayushbaluni
aayushbalunihttps://github.com/aayushbaluni
on Apr 15, 2026https://github.com/triggerdotdev/trigger.dev/issues/3292#issuecomment-4252077305
#3381https://github.com/triggerdotdev/trigger.dev/pull/3381
#3378https://github.com/triggerdotdev/trigger.dev/pull/3378
deepshekhardashttps://github.com/deepshekhardas
on Jun 17, 2026https://github.com/triggerdotdev/trigger.dev/issues/3292#event-26852887613
fix: prevent nanosecond overflow in OTLP timestampshttps://github.com/deepshekhardas/trigger.dev/commit/8a26457e33ce1a988d1f802732f2d5af0318d46f
https://docs.github.com/articles/closing-issues-via-commit-messages
8a26457https://github.com/deepshekhardas/trigger.dev/commit/8a26457e33ce1a988d1f802732f2d5af0318d46f
okxinthttps://github.com/okxint
on Jul 30, 2026https://github.com/triggerdotdev/trigger.dev/issues/3292#event-28728552579
fix(webapp): fix BigInt nanosecond precision loss in retry event star…https://github.com/okxint/trigger.dev/commit/2ab0c81e95585e81a45e9c15be418040012a7471
2ab0c81https://github.com/okxint/trigger.dev/commit/2ab0c81e95585e81a45e9c15be418040012a7471
https://github.com/AkhilTrivediX
AkhilTrivediXhttps://github.com/AkhilTrivediX
on Aug 4, 2026https://github.com/triggerdotdev/trigger.dev/issues/3292#issuecomment-5179893642
#4499https://github.com/triggerdotdev/trigger.dev/pull/4499
https://github.com/robinthedev-a11y
robinthedev-a11yhttps://github.com/robinthedev-a11y
on Sep 9, 2026https://github.com/triggerdotdev/trigger.dev/issues/3292#issuecomment-5605846014
https://github.com/bilalhusain-dev
bilalhusain-devhttps://github.com/bilalhusain-dev
on Oct 12, 2026https://github.com/triggerdotdev/trigger.dev/issues/3292#issuecomment-6127593776
oziasshttps://github.com/oziass
on Oct 14, 2026https://github.com/triggerdotdev/trigger.dev/issues/3292#event-33218571361
fix(webapp): convert epoch ms to BigInt before nanosecond multiplicationhttps://github.com/oziass/trigger.dev/commit/33f68e7456275e66cee691c943e964f74f3ddfed
https://docs.github.com/articles/closing-issues-via-commit-messages
33f68e7https://github.com/oziass/trigger.dev/commit/33f68e7456275e66cee691c943e964f74f3ddfed
https://github.com/oziass
oziasshttps://github.com/oziass
on Oct 14, 2026https://github.com/triggerdotdev/trigger.dev/issues/3292#issuecomment-6167103322
#3292https://github.com/triggerdotdev/trigger.dev/issues/3292
#5027https://github.com/triggerdotdev/trigger.dev/pull/5027
33f68e7https://github.com/triggerdotdev/trigger.dev/commit/33f68e7456275e66cee691c943e964f74f3ddfed
@oziasshttps://github.com/oziass
#5027https://github.com/triggerdotdev/trigger.dev/pull/5027
oziasshttps://github.com/oziass
on Oct 21, 2026https://github.com/triggerdotdev/trigger.dev/issues/3292#event-33821467324
fix(webapp): convert epoch ms to BigInt before nanosecond multiplicationhttps://github.com/oziass/trigger.dev/commit/c2a6e9941c98631cfb3598456a70862d85384085
https://docs.github.com/articles/closing-issues-via-commit-messages
c2a6e99https://github.com/oziass/trigger.dev/commit/c2a6e9941c98631cfb3598456a70862d85384085
Sign up for freehttps://github.com/signup?return_to=https://github.com/triggerdotdev/trigger.dev/issues/3292
Sign in to commenthttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/3292
bugSomething isn't workinghttps://github.com/triggerdotdev/trigger.dev/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.