From dfafb03ebcf6034c9704aaa05ebffb1b43421659 Mon Sep 17 00:00:00 2001 From: Peter Fogg Date: Wed, 29 Jul 2015 17:37:14 -0400 Subject: [PATCH] Add New Relic tracing to TeamsListView.get. --- lms/djangoapps/teams/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lms/djangoapps/teams/views.py b/lms/djangoapps/teams/views.py index 52bd27a649..bd4d6b69de 100644 --- a/lms/djangoapps/teams/views.py +++ b/lms/djangoapps/teams/views.py @@ -6,6 +6,7 @@ from django.http import Http404 from django.conf import settings from django.core.paginator import Paginator from django.views.generic.base import View +import newrelic.agent from rest_framework.generics import GenericAPIView from rest_framework.response import Response @@ -256,6 +257,7 @@ class TeamsListView(ExpandableFieldViewMixin, GenericAPIView): pagination_serializer_class = PaginationSerializer serializer_class = CourseTeamSerializer + @newrelic.agent.function_trace() def get(self, request): """GET /api/team/v0/teams/""" result_filter = {