Django syndication feed views and New Relic
Using New Relic together with Django? It is a fairly cool and noninvasive web performance monitoring situation that I’ve been testing out over the past month or so. One thing I figured out made it a lot easier to get unique web transaction name per syndication Feed
subclass, which wasn’t happening out of the box. You’ll want to add a __name__
attribute to the class, giving you something like the following:
from django.contrib.syndication.views import Feed
class NewsFeed(Feed):
__name__ = 'news_feed'
You can see an example of this in action for multiple feeds in the Archweb NewsFeed implementation. This made feeds show up as “/feeds:news_feed” and “/feeds:package_feed” rather than all showing up under one web transaction name.
Now I’m just wishing New Relic was less expensive (or free!) for open-source project websites…
Tags
See Also
- MySQL deadlocking on simple inserts - March 7, 2012
- Arch Package Visualization - June 23, 2011
- Django South graphmigrations - February 16, 2011
- Useful PostgreSQL schema diff tool - January 9, 2011
- Python cached property decorator - December 10, 2010