Skip to content

Commit

Permalink
feat(profiles): Send profile chunks to the chunk route on vroom (#70714)
Browse files Browse the repository at this point in the history
  • Loading branch information
phacops authored May 21, 2024
1 parent 40306d8 commit b9dc7dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sentry/profiles/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,8 @@ def _track_outcome(
def _insert_vroom_profile(profile: Profile) -> bool:
with sentry_sdk.start_span(op="task.profiling.insert_vroom"):
try:
response = get_from_profiling_service(method="POST", path="/profile", json_data=profile)
path = "/chunk" if profile.get("version") == "2" else "/profile"
response = get_from_profiling_service(method="POST", path=path, json_data=profile)

if response.status == 204:
return True
Expand Down

0 comments on commit b9dc7dd

Please sign in to comment.