Skip to content

feat: add Faro session replay instrumentation#952

Draft
NWRichmond wants to merge 3 commits intomainfrom
941/faro-session-replay
Draft

feat: add Faro session replay instrumentation#952
NWRichmond wants to merge 3 commits intomainfrom
941/faro-session-replay

Conversation

@NWRichmond
Copy link
Collaborator

✨ Description

Related issue(s): This PR closes #941. It adds session replay to the Faro instrumentation.

📖 Summary of the changes

This PR adds session replay instrumentation for Faro. It does so in a privacy-oriented way, masking parts of the UI that contain metric names, label names, and label values.

🧪 How to test?

TODO

@github-actions github-actions bot added the feat label Jan 20, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 20, 2026

Bundle Size Changes

Hello! 👋 This comment was generated by a Github Action to help you and reviewers understand the impact of your PR on frontend bundle sizes.

Whenever this PR is updated, this comment will update to reflect the latest changes.

EntryPoint Size % Diff
module 382.68 KB (+177.82 KB) +86.80%
Files Total bundle size % Diff
45 3.61 MB (+178.06 KB) +5.06%
View detailed bundle information

Added

Name Size % Diff
935.js?_cache=cb2b89b96e5c47f417f4 251.57 KB (+251.57 KB) -
509.js?_cache=cd19beefbecd7b789d40 5.79 KB (+5.79 KB) -

Removed

Name Size % Diff
935.js?_cache=598522595606cbd57d53 0 Bytes (-251.33 KB) -100.00%
509.js?_cache=24491912065f844134f2 0 Bytes (-5.79 KB) -100.00%

Bigger

Name Size % Diff
module.js 382.68 KB (+177.82 KB) +86.80%

Smaller

No assets were smaller

View module information

Added

Name Size % Diff
rrweb 521.51 KB (+521.51 KB) -
@grafana/faro-instrumentation-replay 3.59 KB (+3.59 KB) -

Removed

No modules were removed

Bigger

Name Size % Diff
./shared/logger/faro/faro.ts 2.95 KB (+825 Bytes) +37.52%
@grafana/faro-core 61.5 KB (+702 Bytes) +1.13%
./MetricScene/Breakdown/GroupBySelector/GroupBySelector.tsx 1.98 KB (+122 Bytes) +6.42%
./MetricsReducer/SideBar/sections/BookmarksList/BookmarkListItem.tsx 4.92 KB (+106 Bytes) +2.15%
./MetricsReducer/SideBar/sections/LabelsBrowser/LabelsList.tsx 2.71 KB (+64 Bytes) +2.36%
./MetricsReducer/SideBar/sections/MetricsFilterSection/CheckBoxList.tsx 1.92 KB (+32 Bytes) +1.66%
./MetricsReducer/SideBar/sections/MetricsFilterSection/TreeCheckBoxList.tsx 9.68 KB (+32 Bytes) +0.32%
./MetricsReducer/SideBar/sections/MetricsFilterSection/CheckboxWithCount.tsx 1.14 KB (+32 Bytes) +2.82%
./MetricsReducer/labels/LabelsVariable.tsx 4.49 KB (+32 Bytes) +0.70%

Smaller

No modules were smaller

@NWRichmond
Copy link
Collaborator Author

+177.82 KB is a big deal. I'm not sure if we can move forward with this given the present bundle size impact.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add session replay to Faro instrumentation

2 participants