Skip to content

## Summary - propagate through recursive calls - add regression test covering ancestor id optimization ## Context Fixes #6323. When , ancestor ids were not used in the computed XPath due to a false value in recursive calls. ## Test plan - [ ] npm test -- packages/opentelemetry-sdk-trace-web/test/window/utils.test.ts#6334

Closed
Terrorizer-AI wants to merge 1 commit intoopen-telemetry:mainfrom
Terrorizer-AI:fix/getelementxpath-optimised

Conversation

@Terrorizer-AI
Copy link

@Terrorizer-AI Terrorizer-AI commented Jan 23, 2026

Summary

  • propagate optimised through recursive getElementXPath calls
  • add regression test covering ancestor id optimization

Context

Fixes #6323. When optimised=true, ancestor ids were not used in the
computed XPath due to a false value in recursive calls.

Test plan

  • npm test -- packages/opentelemetry-sdk-trace-web/test/window/utils.test.ts

Pass the optimised flag through recursive getElementXPath calls so
ancestor ids are used consistently, and add a regression test for it.
Fixes open-telemetry#6323.
@Terrorizer-AI Terrorizer-AI requested review from a team as code owners January 23, 2026 20:51
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jan 23, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: akkupratap323 / name: Aditya Pratap Singh (4005d1c)

Copy link
Contributor

@overbalance overbalance left a comment

Choose a reason for hiding this comment

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

Should we block this robot? Does GitHub have that function?

@akkupratap323
Copy link

yaa its my AI Agent , sorry for that. @overbalance .

@pichlermarc
Copy link
Member

Closing this as it is superseded by #6335. This seems like it was a mistake, so I suggest we don’t take any further action here for now.

FYI @akkupratap323, our GenAI policy: https://github.com/open-telemetry/community/blob/096526e65c72e0850e67f21034c394d9da974422/policies/genai.md

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.

getElementXPath does not pass parameter optimised recursively

4 participants

Comments