Skip to content

Conversation

@shruthilayaj
Copy link
Member

@shruthilayaj shruthilayaj commented Nov 12, 2025

Adds an endpoint that is essentially a wrapper around the TraceItemStats endpoint.
This endpoint is meant to give you information about the shape of your data.
This will be used to return distributions. As we add more stats types, we will expose
them in this endpoint.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 12, 2025
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 12, 2025
@github-actions
Copy link
Contributor

🚨 Warning: This pull request contains Frontend and Backend changes!

It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently.

Have questions? Please ask in the #discuss-dev-infra channel.

except NoProjects:
return Response({"data": []})

stats_types = set(request.GET.getlist("statsType", default=["attributeDistributions"]))
Copy link
Member

Choose a reason for hiding this comment

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

could use a validator for these query parameters, e.g.

serializer = OrganizationProfilingFlamegraphSerializer(data=request.GET)

Copy link
Contributor

@Abdkhan14 Abdkhan14 left a comment

Choose a reason for hiding this comment

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

lgtm, we can iterate on anything that's missing

@shruthilayaj shruthilayaj force-pushed the shruthi/feat/add-trace-item-stats-endpoint branch from 81853b0 to 0cce669 Compare November 12, 2025 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants