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

[Cache] Allow invalidateTags calls to be traced by data collector #36536

Merged

Conversation

l-vo
Copy link
Contributor

@l-vo l-vo commented Apr 22, 2020

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets #34810
License MIT
Doc PR

TraceableTagAwareAdapter is not used in the fullstack framework since tag aware pools don't have the cache.pool tag (it's the decorated adapter that has it). This PR aims to use TraceableTagAwareAdapter when a pool is configured with tags: true

@chalasr chalasr added this to the 4.4 milestone Apr 23, 2020
@chalasr chalasr added the Cache label Apr 23, 2020
@nicolas-grekas nicolas-grekas changed the title Allow invalidateTags calls to be traced by data collector [Cache] Allow invalidateTags calls to be traced by data collector Apr 23, 2020
if ($definition->isAbstract()) {
continue;
}
$this->addToCollector($id, $container);
Copy link
Member

Choose a reason for hiding this comment

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

don't we want to collect only the decorator when there is one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, If we only collect the TagAwareAdapter, we lose the psr6 calls since the Adapter decorated by TagAwareAdapter calls these methods on itself.

@nicolas-grekas
Copy link
Member

Fixes #34810?

@l-vo l-vo force-pushed the add_tag_aware_adapters_to_collector branch from 0ed7fb2 to 28fdb3a Compare April 24, 2020 11:56
@l-vo
Copy link
Contributor Author

l-vo commented Apr 24, 2020

Fixes #34810?

I haven't seen this issue, but yes, that fixes it.

@nicolas-grekas
Copy link
Member

Thank you @l-vo.

@nicolas-grekas nicolas-grekas merged commit 1bc3ee7 into symfony:4.4 Apr 26, 2020
This was referenced Apr 28, 2020
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.

None yet

4 participants