Skip to content

✨ [RUM-6798] Capture resource content type#4270

Merged
bdibon merged 10 commits intomainfrom
boris.dibon/collect-resource-content-type
Mar 10, 2026
Merged

✨ [RUM-6798] Capture resource content type#4270
bdibon merged 10 commits intomainfrom
boris.dibon/collect-resource-content-type

Conversation

@bdibon
Copy link
Copy Markdown
Contributor

@bdibon bdibon commented Mar 4, 2026

Motivation

Web Browsers are about to support the PerformanceResourceTiming.contentType property, this will enable the browser-sdk to add a content type to resources that have not been manually retrieved via the fetch or XMLHttpRequest APIs.

Changes

Test instructions

Send events to intake (from FIREFOX!), your resources (but manual fetch/XHR calls) will have the new content-type field.

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

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 4, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@datadog-official
Copy link
Copy Markdown

datadog-official bot commented Mar 4, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage (details)
Patch Coverage: 60.00%
Overall Coverage: 76.75% (-0.01%)

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

@bdibon bdibon force-pushed the boris.dibon/collect-resource-content-type branch from 11bde9a to 7a95b22 Compare March 4, 2026 14:33
@cit-pr-commenter-54b7da
Copy link
Copy Markdown

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

Bundles Sizes Evolution

📦 Bundle Name Base Size Local Size 𝚫 𝚫% Status
Rum 174.43 KiB 174.52 KiB +94 B +0.05%
Rum Profiler 6.16 KiB 6.16 KiB 0 B 0.00%
Rum Recorder 25.24 KiB 25.24 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.11 KiB 130.21 KiB +94 B +0.07%
Worker 23.63 KiB 23.63 KiB 0 B 0.00%
🚀 CPU Performance

Pending...

🧠 Memory Performance
Action Name Base Memory Consumption Local Memory Consumption 𝚫
RUM - add global context 26.64 KiB 26.13 KiB -521 B
RUM - add action 51.02 KiB 51.09 KiB +70 B
RUM - add timing 26.14 KiB 26.41 KiB +275 B
RUM - add error 54.89 KiB 55.11 KiB +218 B
RUM - start/stop session replay recording 25.07 KiB 25.76 KiB +706 B
RUM - start view 449.29 KiB 448.70 KiB -607 B
Logs - log message 44.45 KiB 44.66 KiB +217 B

🔗 RealWorld

@bdibon
Copy link
Copy Markdown
Contributor Author

bdibon commented Mar 4, 2026

recheck

@bdibon
Copy link
Copy Markdown
Contributor Author

bdibon commented Mar 4, 2026

I have read the CLA Document and I hereby sign the CLA

@bdibon bdibon force-pushed the boris.dibon/collect-resource-content-type branch 2 times, most recently from b726dcf to 7cfaff8 Compare March 4, 2026 17:02
@bdibon bdibon force-pushed the boris.dibon/collect-resource-content-type branch from 90a6e40 to 2a7a740 Compare March 5, 2026 16:36
@bdibon bdibon marked this pull request as ready for review March 5, 2026 16:38
@bdibon bdibon requested a review from a team as a code owner March 5, 2026 16:38
@bdibon bdibon changed the title ✨ Capture resource content type ✨ [RUM-6798] Capture resource content type Mar 5, 2026
@bdibon bdibon force-pushed the boris.dibon/collect-resource-content-type branch from 2a7a740 to 973fd4f Compare March 6, 2026 10:57
@bdibon bdibon force-pushed the boris.dibon/collect-resource-content-type branch from 973fd4f to a958fcd Compare March 9, 2026 08:58
Copy link
Copy Markdown
Collaborator

@bcaudan bcaudan left a comment

Choose a reason for hiding this comment

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

Nice 👍

@bdibon bdibon requested a review from thomas-lebeau March 9, 2026 09:35
@bdibon
Copy link
Copy Markdown
Contributor Author

bdibon commented Mar 9, 2026

/to-staging

@gh-worker-devflow-routing-ef8351
Copy link
Copy Markdown

gh-worker-devflow-routing-ef8351 bot commented Mar 9, 2026

View all feedbacks in Devflow UI.

2026-03-09 14:42:34 UTC ℹ️ Start processing command /to-staging


2026-03-09 14:42:41 UTC ℹ️ Branch Integration: starting soon, merge expected in approximately 0s (p90)

Commit a958fcd45d will soon be integrated into staging-11.


2026-03-09 15:00:05 UTC ℹ️ Branch Integration: this commit was successfully integrated

Commit a958fcd45d has been merged into staging-11 in merge commit bd59d9a3d3.

Check out the triggered DDCI request.

If you need to revert this integration, you can use the following command: /code revert-integration -b staging-11

gh-worker-dd-mergequeue-cf854d bot added a commit that referenced this pull request Mar 9, 2026
…ing-11

Integrated commit sha: a958fcd

Co-authored-by: bdibon <boris.dibon@datadoghq.com>
@bdibon bdibon merged commit 325fb42 into main Mar 10, 2026
22 checks passed
@bdibon bdibon deleted the boris.dibon/collect-resource-content-type branch March 10, 2026 15:50
@github-actions github-actions bot locked and limited conversation to collaborators Mar 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants