Skip to content

Add @datadog/browser-rum-angular package with Angular Router integration#4315

Draft
rgaignault wants to merge 6 commits intomainfrom
romanG/angular-integration
Draft

Add @datadog/browser-rum-angular package with Angular Router integration#4315
rgaignault wants to merge 6 commits intomainfrom
romanG/angular-integration

Conversation

@rgaignault
Copy link
Contributor

Motivation

Changes

Test instructions

Checklist

  • Tested locally
  • Tested on staging
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.
  • Updated documentation and/or relevant AGENTS.md file

Introduce the Angular RUM plugin that subscribes to Angular Router
NavigationEnd events and derives stable route-template view names
(e.g. /users/:id) instead of raw URLs.

Public API: angularPlugin() and provideDatadogRouter()
Angular test app with AOT compilation via @ngtools/webpack and
E2E scenarios verifying route-template view names for parameterized
and lazy-loaded routes.
@rgaignault rgaignault requested a review from a team as a code owner March 11, 2026 19:18
@cit-pr-commenter-54b7da
Copy link

cit-pr-commenter-54b7da bot commented Mar 11, 2026

Bundles Sizes Evolution

📦 Bundle Name Base Size Local Size 𝚫 𝚫% Status
Rum 174.53 KiB 174.53 KiB 0 B 0.00%
Rum Profiler 6.16 KiB 6.16 KiB 0 B 0.00%
Rum Recorder 27.46 KiB 27.46 KiB 0 B 0.00%
Logs 56.84 KiB 56.84 KiB 0 B 0.00%
Flagging 944 B 944 B 0 B 0.00%
Rum Slim 130.21 KiB 130.21 KiB 0 B 0.00%
Worker 23.63 KiB 23.63 KiB 0 B 0.00%
🚀 CPU Performance
Action Name Base CPU Time (ms) Local CPU Time (ms) 𝚫%
RUM - add global context 0.0047 0.004 -14.89%
RUM - add action 0.0183 0.0135 -26.23%
RUM - add error 0.0147 0.0189 +28.57%
RUM - add timing 0.0032 0.0043 +34.37%
RUM - start view 0.0134 0.0181 +35.07%
RUM - start/stop session replay recording 0.0008 0.0008 0.00%
Logs - log message 0.0197 0.0212 +7.61%
🧠 Memory Performance
Action Name Base Memory Consumption Local Memory Consumption 𝚫
RUM - add global context 26.88 KiB 26.09 KiB -811 B
RUM - add action 51.21 KiB 52.09 KiB +907 B
RUM - add timing 26.72 KiB 27.77 KiB +1.05 KiB
RUM - add error 56.25 KiB 53.30 KiB -2.95 KiB
RUM - start/stop session replay recording 25.88 KiB 25.89 KiB +11 B
RUM - start view 452.02 KiB 454.50 KiB +2.48 KiB
Logs - log message 45.00 KiB 45.02 KiB +19 B

🔗 RealWorld

@datadog-datadog-prod-us1-2
Copy link

datadog-datadog-prod-us1-2 bot commented Mar 11, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage (details)
Patch Coverage: 75.86%
Overall Coverage: 77.16% (-0.02%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 61f19c4 | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback!

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1d86086b1e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@rgaignault rgaignault force-pushed the romanG/angular-integration branch from e9cb75e to 84e221e Compare March 11, 2026 19:37
@rgaignault rgaignault force-pushed the romanG/angular-integration branch from 84e221e to 8846690 Compare March 11, 2026 19:42
@rgaignault rgaignault marked this pull request as draft March 11, 2026 20:43
@rgaignault rgaignault force-pushed the romanG/angular-integration branch from 5972ba1 to 9ebc64e Compare March 11, 2026 20:56
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