Skip to content

Commit 2408ecd

Browse files
authored
ref(profiling): Record flamegraph endpoint dataSource param (#112597)
Need to make sure that requests with the `dataSource` set to `transactions` taper off as we remove frontend callers that use it.
1 parent 14deaf5 commit 2408ecd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sentry/api/endpoints/organization_profiling_profiles.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sentry_sdk
12
from django.http import HttpResponse
23
from rest_framework import serializers
34
from rest_framework.exceptions import ParseError
@@ -77,6 +78,8 @@ def get(self, request: Request, organization: Organization) -> HttpResponse:
7778
return Response(serializer.errors, status=400)
7879
serialized = serializer.validated_data
7980

81+
sentry_sdk.set_tag("query.dataSource", serialized["dataSource"])
82+
8083
with handle_query_errors():
8184
executor = FlamegraphExecutor(
8285
request=request,

0 commit comments

Comments
 (0)