Skip to content

Commit d8f4bdd

Browse files
authored
chore(trace-view): Trace view logs should use org slug (#26164)
This was previously converting the organization object to string which isn't helpful when searching through logs.
1 parent 469640f commit d8f4bdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/api/endpoints/organization_events_trace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def get(self, request: HttpRequest, organization: Organization, trace_id: str) -
377377
return Response(status=404)
378378
self.record_analytics(transactions, trace_id, self.request.user.id, organization.id)
379379

380-
warning_extra: Dict[str, str] = {"trace": trace_id, "organization": organization}
380+
warning_extra: Dict[str, str] = {"trace": trace_id, "organization": organization.slug}
381381

382382
# Look for the roots
383383
roots: List[SnubaTransaction] = []

0 commit comments

Comments
 (0)