Skip to content

Add controller and action name to the fragment caching instrumentation payload#14137

Merged
rafaelfranca merged 1 commit into
rails:masterfrom
dasch:better-fragment-cache-instrumentation
May 14, 2014
Merged

Add controller and action name to the fragment caching instrumentation payload#14137
rafaelfranca merged 1 commit into
rails:masterfrom
dasch:better-fragment-cache-instrumentation

Conversation

@dasch

@dasch dasch commented Feb 21, 2014

Copy link
Copy Markdown
Contributor

This allows tracking the cache activity and performance separately for each controller action. For instance, it would be possible to calculate the cache hit rate for a specific action on a specific controller.

I'd like to add the virtual path of the template to the payload, but it doesn't appear to be accessible from within the module – and I'd rather not pass it explicitly from Action View. If you have any ideas, it would be much appreciated.

@dasch

dasch commented Feb 22, 2014

Copy link
Copy Markdown
Contributor Author

@josevalim I've added some more instrumentation here – would you mind taking a look at it?

@robin850 robin850 modified the milestone: 4.2.0 Feb 22, 2014
@robin850 robin850 added this to the 4.2.0 milestone Mar 2, 2014
@dasch

dasch commented May 3, 2014

Copy link
Copy Markdown
Contributor Author

@rafaelfranca @josevalim would you guys care to take a look at this? It's been sitting here for a while now, and I think it would be useful for people :-)

@rafaelfranca

Copy link
Copy Markdown
Member

I don't see why we should not. Could you add a CHANGELOG entry?

@dasch

dasch commented May 10, 2014

Copy link
Copy Markdown
Contributor Author

@rafaelfranca sure! I've pushed an updated commit.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you please use 1.9 hash syntax here ?

@rafaelfranca
rafaelfranca merged commit 92fbbf6 into rails:master May 14, 2014
rafaelfranca added a commit that referenced this pull request May 14, 2014
…ation

Add controller and action name to the fragment caching instrumentation payload

Conflicts:
	actionpack/CHANGELOG.md
@dasch
dasch deleted the better-fragment-cache-instrumentation branch October 16, 2014 14:16
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.

3 participants