Skip to content

Comments

[PANA-6072] add composedPathSelector to click actions target behind FF#4211

Open
LFBarreto wants to merge 2 commits intomainfrom
luiz.barreto/PANA-6072-action-mgmt-browser-sdk-po-c-for-event-path-selector-collection-update
Open

[PANA-6072] add composedPathSelector to click actions target behind FF#4211
LFBarreto wants to merge 2 commits intomainfrom
luiz.barreto/PANA-6072-action-mgmt-browser-sdk-po-c-for-event-path-selector-collection-update

Conversation

@LFBarreto
Copy link
Collaborator

@LFBarreto LFBarreto commented Feb 19, 2026

Motivation

PANA-6072

Changes

This adds a composedPath based selector string that will be used in Product Analytics action management.
For more info

  • The new field is added to @_dd.action.target.composed_path_selector, it is built by collecting id, attributes, classes and child position data (nth-child nth-of-type)
  • The composed string is truncated to a maximum of 2kb character length
  • The attributes collected are limited to a predefined allow list to avoid collecting PII data, this attribute list can be extended via the rum configuration allowedHtmlAttributes
  • 🚩The data is only collected for now if the experimentalFeatureFlag composed_path_selector is set in the config
Screenshot 2026-02-23 at 09 49 16

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

@github-actions
Copy link


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


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


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@cit-pr-commenter-54b7da
Copy link

cit-pr-commenter-54b7da bot commented Feb 19, 2026

Bundles Sizes Evolution

📦 Bundle Name Base Size Local Size 𝚫 𝚫% Status
Rum 172.21 KiB 173.74 KiB +1.52 KiB +0.88%
Rum Profiler 4.71 KiB 4.71 KiB 0 B 0.00%
Rum Recorder 24.88 KiB 24.88 KiB 0 B 0.00%
Logs 56.29 KiB 56.34 KiB +50 B +0.09%
Flagging 944 B 944 B 0 B 0.00%
Rum Slim 127.99 KiB 129.49 KiB +1.50 KiB +1.17%
Worker 23.63 KiB 23.63 KiB 0 B 0.00%
🚀 CPU Performance

Pending...

🧠 Memory Performance

Pending...

🔗 RealWorld

@datadog-official
Copy link

datadog-official bot commented Feb 19, 2026

⚠️ Tests

Fix all issues with BitsAI or with Cursor

⚠️ Warnings

🧪 1 Test failed

action collection with composed path selector › should return a composed_path_selector if flag is enabled › async from rum/actions.scenario.ts (Datadog) (Fix with Cursor)
actions.scenario.ts:803:13 async

[chromium] › rum/actions.scenario.ts:803:13 › action collection with composed path selector › should return a composed_path_selector if flag is enabled › async 

    Error: expect(received).toBe(expected) // Object.is equality

    Expected: "BUTTON#my-button[data-test-allowed=\"test-btn\"].bar.baz.foo:nth-child(2):nth-of-type(2);DIV#container;"
    Received: "BUTTON#my-button[data-test-allowed=\"test-btn\"].bar.baz.foo:nth-child(2):nth-of-type(2);DIV#container:nth-child(1);"

      820 |       const actionEvents = intakeRegistry.rumActionEvents
...

ℹ️ Info

❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 76.92%
Overall Coverage: 77.19% (+0.01%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 67b062e | Docs | Datadog PR Page | Was this helpful? Give us feedback!

@LFBarreto LFBarreto force-pushed the luiz.barreto/PANA-6072-action-mgmt-browser-sdk-po-c-for-event-path-selector-collection-update branch from 0714581 to c892584 Compare February 19, 2026 16:39
@LFBarreto LFBarreto force-pushed the luiz.barreto/PANA-6072-action-mgmt-browser-sdk-po-c-for-event-path-selector-collection-update branch 4 times, most recently from f47e098 to d7aa56c Compare February 20, 2026 13:44
@LFBarreto LFBarreto changed the title [PANA-6072] PoC - add composedPathSelector to click actions target [PANA-6072] add composedPathSelector to click actions target behind FF Feb 23, 2026
@LFBarreto LFBarreto marked this pull request as ready for review February 23, 2026 09:02
@LFBarreto LFBarreto requested a review from a team as a code owner February 23, 2026 09:02
@LFBarreto LFBarreto force-pushed the luiz.barreto/PANA-6072-action-mgmt-browser-sdk-po-c-for-event-path-selector-collection-update branch from 2319c70 to d82fe2b Compare February 23, 2026 10:32
@LFBarreto LFBarreto force-pushed the luiz.barreto/PANA-6072-action-mgmt-browser-sdk-po-c-for-event-path-selector-collection-update branch from d82fe2b to 67b062e Compare February 23, 2026 15:00
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