Skip to content

Conversation

bcaudan
Copy link
Collaborator

@bcaudan bcaudan commented Sep 16, 2025

Motivation

Test performance script fix #3845

Changes

Add performance script fix on top of the change introducing the change in bundle sizes

Test instructions

Checklist

  • Tested locally
  • Tested on staging
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.

- allow to apply a telemetry sample rate to telemetry events emitted before the configuration is applied
- centralize telemetry sampling draws in telemetry.ts which now exposes `enabledMetrics`
- expose replay metrics from recorderApi
preliminary refactoring, metrics introduced in next commit
- add new telemetry metric
- collect data about results of rc fetch and dynamic options resolution
@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Sep 16, 2025

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage
Patch Coverage: 97.25%
Total Coverage: 92.34% (-0.01%)

View detailed report

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 5dcaf80 | Docs | Was this helpful? Give us feedback!

Copy link

Bundles Sizes Evolution

📦 Bundle Name Base Size Local Size 𝚫 𝚫% Status
Rum 159.69 KiB 180.64 KiB 20.95 KiB +13.12% ⚠️
Rum Recorder 19.53 KiB 758 B -19240 B -96.21%
Rum Profiler 5.18 KiB 5.18 KiB 0 B 0.00%
Logs 55.76 KiB 55.89 KiB 132 B +0.23%
Flagging N/A 931 B 931 B N/A%
Rum Slim 117.36 KiB 118.18 KiB 838 B +0.70%
Worker 23.60 KiB 23.60 KiB 0 B 0.00%

⚠️ The increase is particularly high and exceeds 5%. Please check the changes.

🚀 CPU Performance
Action Name Base Average Cpu Time (ms) Local Average Cpu Time (ms) 𝚫
addglobalcontext 0.005 0.008 0.003
addaction 0.018 0.030 0.013
addtiming 0.006 0.006 -0.000
adderror 0.020 0.033 0.014
startstopsessionreplayrecording 0.001 0.001 -0.000
startview 0.005 0.007 0.002
logmessage 0.024 0.032 0.009
🧠 Memory Performance
Action Name Base Consumption Memory (bytes) Local Consumption Memory (bytes) 𝚫 (bytes)
addglobalcontext 26.13 KiB 25.41 KiB -733 B
addaction 46.65 KiB 45.91 KiB -755 B
addtiming 24.01 KiB 25.16 KiB 1.15 KiB
adderror 50.51 KiB 56.37 KiB 5.86 KiB
startstopsessionreplayrecording 24.14 KiB 24.13 KiB -8 B
startview 424.39 KiB 431.40 KiB 7.02 KiB
logmessage 43.74 KiB 41.95 KiB -1829 B

🔗 RealWorld

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant