Commit dfafb03e by Peter Fogg

Add New Relic tracing to TeamsListView.get.

parent 6473cd9b
......@@ -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 = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment