Skip to content

feat(amp-semantic): mirror replay URL observations - #2151

Draft
jxiwang wants to merge 3 commits into
codex/semantic-lifecycle-eventsfrom
codex/semantic-navigation
Draft

jxiwang wants to merge 3 commits into
codex/semantic-lifecycle-eventsfrom
codex/semantic-navigation

Conversation

@jxiwang

@jxiwang jxiwang commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds amp-semantic/navigation as a compact mirror of accepted amplitude/url-tracking@1 rrweb plugin events. The semantic recorder uses the plugin timestamp, strips origin and query, and templates identifier-shaped path and hash-route segments. The replay adapter queues only compact startup observations until ready; it adds no new URL observer.

Stacked on #2150. This replaces the navigation portion of the older draft #2081. Recording state and other event families remain separate follow-ups.

Validation

  • pnpm install --frozen-lockfile — passed (Node 24)
  • Semantic and Session Replay package builds — passed
  • Semantic tests — 43 passed, 100% coverage
  • Session Replay Browser tests — 1,166 passed, 100% coverage
  • Semantic Playwright — 9 passed
  • pnpm lint, pnpm lint:deps, pnpm test:examples — passed
  • Full workspace pnpm build on parent branch stalled in unchanged Segment Session Replay Rollup. Full workspace pnpm test on parent branch failed in two unchanged analytics-react-native tests. This draft remains open pending green workspace gates.

@github-actions

Copy link
Copy Markdown

size-limit report 📦

Path Size
packages/analytics-browser/lib/scripts/amplitude-min.js.gz 68.41 KB (0%)
packages/session-replay-browser/lib/scripts/session-replay-browser-min.js.gz 140.51 KB (+0.1% 🔺)
packages/unified/lib/scripts/amplitude-min.umd.js.gz 227 KB (+0.08% 🔺)
@amplitude/element-selector (gzipped esm) 3.48 KB (0%)
@amplitude/analytics-browser/lite (gzipped CDN bundle) 21.34 KB (0%)

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Session Replay Browser E2E Results

passed  159 passed

Details

stats  159 tests across 18 suites
duration  4 minutes, 19 seconds
commit  b00899b

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant