Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix instrumentation propagation of PrefixedViewConfigs #721

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

akang31
Copy link
Contributor

@akang31 akang31 commented Apr 12, 2024

PrefixedViewConfigs, on updates from configs that it depends on, did not propagate updates to configs that depend on it, meaning any fast property updates for example would be lost.

Example: For the situation of a CompositeConfig over a PrefixedViewConfig over an instrumented config, any accesses on the overarching CompositeConfig would not be properly re-prefixed with the PrefixedViewConfig when propagating instrumentation data to the instrumented config.

Consider CompositeConfig.getRawProperty("prop") for PrefixedViewConfig with prefix "prefix"

Previous behavior: Instrumented config tries to record usage for "prop", but that's not actually the property being accessed.
Fixed behavior: PrefixedViewConfig when passed through prepends "prefix." resulting in the expected "prefix.prop" being reported as accessed.

@akang31 akang31 merged commit a94871b into 2.x Apr 15, 2024
10 checks passed
@akang31 akang31 deleted the prefixedviewconfignesting branch April 15, 2024 22:23
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.

2 participants