getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
39.23k stars 4.21k forks source link

chore(billing): Add profile chunk to org stats v2 endpoint #81019

Open dashed opened 2 days ago

dashed commented 2 days ago

Follow up to https://github.com/getsentry/sentry/pull/80485 to add profile chunks to org stats v2 endpoint.

codecov[bot] commented 2 days ago

:x: 32 Tests Failed:

Tests completed Failed Passed Skipped
23099 32 23067 215
View the top 3 failed tests by shortest run time > > ```python > tests.snuba.api.endpoints.test_organization_stats_v2.OrganizationStatsTestV2::test_user_no_proj_specific_access > ``` > >
Stack Traces | 10.5s run time > > > > > ```python > > #x1B[1m#x1B[31m.venv/lib/python3.12.............../site-packages/urllib3/connectionpool.py#x1B[0m:789: in urlopen > > response = self._make_request( > > #x1B[1m#x1B[31m.venv/lib/python3.12.............../site-packages/urllib3/connectionpool.py#x1B[0m:536: in _make_request > > response = conn.getresponse() > > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/urllib3/connection.py#x1B[0m:464: in getresponse > > httplib_response = super().getresponse() > > #x1B[1m#x1B[31m.venv/lib/python3.12.../sentry_sdk/integrations/stdlib.py#x1B[0m:128: in getresponse > > return real_getresponse(self, *args, **kwargs) > > #x1B[1m#x1B[.../hostedtoolcache/Python/3.12.6................../x64/lib/python3.12/http/client.py#x1B[0m:1428: in getresponse > > response.begin() > > #x1B[1m#x1B[.../hostedtoolcache/Python/3.12.6................../x64/lib/python3.12/http/client.py#x1B[0m:331: in begin > > version, status, reason = self._read_status() > > #x1B[1m#x1B[.../hostedtoolcache/Python/3.12.6................../x64/lib/python3.12/http/client.py#x1B[0m:300: in _read_status > > raise RemoteDisconnected("Remote end closed connection without" > > #x1B[1m#x1B[31mE http.client.RemoteDisconnected: Remote end closed connection without response#x1B[0m > > > > #x1B[33mDuring handling of the above exception, another exception occurred:#x1B[0m > > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/requests/adapters.py#x1B[0m:667: in send > > resp = conn.urlopen( > > #x1B[1m#x1B[31m.venv/lib/python3.12.............../site-packages/urllib3/connectionpool.py#x1B[0m:843: in urlopen > > retries = retries.increment( > > #x1B[1m#x1B[31m.venv/lib/python3.12.../urllib3/util/retry.py#x1B[0m:474: in increment > > raise reraise(type(error), error, _stacktrace) > > #x1B[1m#x1B[31m.venv/lib/python3.12.../urllib3/util/util.py#x1B[0m:38: in reraise > > raise value.with_traceback(tb) > > #x1B[1m#x1B[31m.venv/lib/python3.12.............../site-packages/urllib3/connectionpool.py#x1B[0m:789: in urlopen > > response = self._make_request( > > #x1B[1m#x1B[31m.venv/lib/python3.12.............../site-packages/urllib3/connectionpool.py#x1B[0m:536: in _make_request > > response = conn.getresponse() > > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/urllib3/connection.py#x1B[0m:464: in getresponse > > httplib_response = super().getresponse() > > #x1B[1m#x1B[31m.venv/lib/python3.12.../sentry_sdk/integrations/stdlib.py#x1B[0m:128: in getresponse > > return real_getresponse(self, *args, **kwargs) > > #x1B[1m#x1B[.../hostedtoolcache/Python/3.12.6................../x64/lib/python3.12/http/client.py#x1B[0m:1428: in getresponse > > response.begin() > > #x1B[1m#x1B[.../hostedtoolcache/Python/3.12.6................../x64/lib/python3.12/http/client.py#x1B[0m:331: in begin > > version, status, reason = self._read_status() > > #x1B[1m#x1B[.../hostedtoolcache/Python/3.12.6................../x64/lib/python3.12/http/client.py#x1B[0m:300: in _read_status > > raise RemoteDisconnected("Remote end closed connection without" > > #x1B[1m#x1B[31mE urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))#x1B[0m > > > > #x1B[33mDuring handling of the above exception, another exception occurred:#x1B[0m > > #x1B[1m#x1B[.../api/endpoints/test_organization_stats_v2.py#x1B[0m:102: in setUp > > self.store_outcomes( > > #x1B[1m#x1B[.../sentry/testutils/cases.py#x1B[0m:2395: in store_outcomes > > assert ( > > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/requests/api.py#x1B[0m:115: in post > > return request("post", url, data=data, json=json, **kwargs) > > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/requests/api.py#x1B[0m:59: in request > > return session.request(method=method, url=url, **kwargs) > > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/requests/sessions.py#x1B[0m:589: in request > > resp = self.send(prep, **send_kwargs) > > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/requests/sessions.py#x1B[0m:703: in send > > r = adapter.send(request, **kwargs) > > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/requests/adapters.py#x1B[0m:682: in send > > raise ConnectionError(err, request=request) > > #x1B[1m#x1B[31mE requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))#x1B[0m > > ``` > >
tests.snuba.api.endpoints.test_organization_stats_v2.OrganizationStatsTestV2::test_staff_project_filter
Stack Traces | 10.5s run time > > ```python > #x1B[1m#x1B[31m.venv/lib/python3.12.............../site-packages/urllib3/connectionpool.py#x1B[0m:789: in urlopen > response = self._make_request( > #x1B[1m#x1B[31m.venv/lib/python3.12.............../site-packages/urllib3/connectionpool.py#x1B[0m:536: in _make_request > response = conn.getresponse() > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/urllib3/connection.py#x1B[0m:464: in getresponse > httplib_response = super().getresponse() > #x1B[1m#x1B[31m.venv/lib/python3.12.../sentry_sdk/integrations/stdlib.py#x1B[0m:128: in getresponse > return real_getresponse(self, *args, **kwargs) > #x1B[1m#x1B[.../hostedtoolcache/Python/3.12.6................../x64/lib/python3.12/http/client.py#x1B[0m:1428: in getresponse > response.begin() > #x1B[1m#x1B[.../hostedtoolcache/Python/3.12.6................../x64/lib/python3.12/http/client.py#x1B[0m:331: in begin > version, status, reason = self._read_status() > #x1B[1m#x1B[.../hostedtoolcache/Python/3.12.6................../x64/lib/python3.12/http/client.py#x1B[0m:300: in _read_status > raise RemoteDisconnected("Remote end closed connection without" > #x1B[1m#x1B[31mE http.client.RemoteDisconnected: Remote end closed connection without response#x1B[0m > > #x1B[33mDuring handling of the above exception, another exception occurred:#x1B[0m > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/requests/adapters.py#x1B[0m:667: in send > resp = conn.urlopen( > #x1B[1m#x1B[31m.venv/lib/python3.12.............../site-packages/urllib3/connectionpool.py#x1B[0m:843: in urlopen > retries = retries.increment( > #x1B[1m#x1B[31m.venv/lib/python3.12.../urllib3/util/retry.py#x1B[0m:474: in increment > raise reraise(type(error), error, _stacktrace) > #x1B[1m#x1B[31m.venv/lib/python3.12.../urllib3/util/util.py#x1B[0m:38: in reraise > raise value.with_traceback(tb) > #x1B[1m#x1B[31m.venv/lib/python3.12.............../site-packages/urllib3/connectionpool.py#x1B[0m:789: in urlopen > response = self._make_request( > #x1B[1m#x1B[31m.venv/lib/python3.12.............../site-packages/urllib3/connectionpool.py#x1B[0m:536: in _make_request > response = conn.getresponse() > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/urllib3/connection.py#x1B[0m:464: in getresponse > httplib_response = super().getresponse() > #x1B[1m#x1B[31m.venv/lib/python3.12.../sentry_sdk/integrations/stdlib.py#x1B[0m:128: in getresponse > return real_getresponse(self, *args, **kwargs) > #x1B[1m#x1B[.../hostedtoolcache/Python/3.12.6................../x64/lib/python3.12/http/client.py#x1B[0m:1428: in getresponse > response.begin() > #x1B[1m#x1B[.../hostedtoolcache/Python/3.12.6................../x64/lib/python3.12/http/client.py#x1B[0m:331: in begin > version, status, reason = self._read_status() > #x1B[1m#x1B[.../hostedtoolcache/Python/3.12.6................../x64/lib/python3.12/http/client.py#x1B[0m:300: in _read_status > raise RemoteDisconnected("Remote end closed connection without" > #x1B[1m#x1B[31mE urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))#x1B[0m > > #x1B[33mDuring handling of the above exception, another exception occurred:#x1B[0m > #x1B[1m#x1B[.../api/endpoints/test_organization_stats_v2.py#x1B[0m:102: in setUp > self.store_outcomes( > #x1B[1m#x1B[.../sentry/testutils/cases.py#x1B[0m:2395: in store_outcomes > assert ( > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/requests/api.py#x1B[0m:115: in post > return request("post", url, data=data, json=json, **kwargs) > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/requests/api.py#x1B[0m:59: in request > return session.request(method=method, url=url, **kwargs) > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/requests/sessions.py#x1B[0m:589: in request > resp = self.send(prep, **send_kwargs) > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/requests/sessions.py#x1B[0m:703: in send > r = adapter.send(request, **kwargs) > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/requests/adapters.py#x1B[0m:682: in send > raise ConnectionError(err, request=request) > #x1B[1m#x1B[31mE requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))#x1B[0m > ```
tests.snuba.api.endpoints.test_organization_stats_v2.OrganizationStatsTestV2::test_profile_duration_filter
Stack Traces | 10.5s run time > > ```python > #x1B[1m#x1B[31m.venv/lib/python3.12.............../site-packages/urllib3/connectionpool.py#x1B[0m:789: in urlopen > response = self._make_request( > #x1B[1m#x1B[31m.venv/lib/python3.12.............../site-packages/urllib3/connectionpool.py#x1B[0m:536: in _make_request > response = conn.getresponse() > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/urllib3/connection.py#x1B[0m:464: in getresponse > httplib_response = super().getresponse() > #x1B[1m#x1B[31m.venv/lib/python3.12.../sentry_sdk/integrations/stdlib.py#x1B[0m:128: in getresponse > return real_getresponse(self, *args, **kwargs) > #x1B[1m#x1B[.../hostedtoolcache/Python/3.12.6................../x64/lib/python3.12/http/client.py#x1B[0m:1428: in getresponse > response.begin() > #x1B[1m#x1B[.../hostedtoolcache/Python/3.12.6................../x64/lib/python3.12/http/client.py#x1B[0m:331: in begin > version, status, reason = self._read_status() > #x1B[1m#x1B[.../hostedtoolcache/Python/3.12.6................../x64/lib/python3.12/http/client.py#x1B[0m:300: in _read_status > raise RemoteDisconnected("Remote end closed connection without" > #x1B[1m#x1B[31mE http.client.RemoteDisconnected: Remote end closed connection without response#x1B[0m > > #x1B[33mDuring handling of the above exception, another exception occurred:#x1B[0m > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/requests/adapters.py#x1B[0m:667: in send > resp = conn.urlopen( > #x1B[1m#x1B[31m.venv/lib/python3.12.............../site-packages/urllib3/connectionpool.py#x1B[0m:843: in urlopen > retries = retries.increment( > #x1B[1m#x1B[31m.venv/lib/python3.12.../urllib3/util/retry.py#x1B[0m:474: in increment > raise reraise(type(error), error, _stacktrace) > #x1B[1m#x1B[31m.venv/lib/python3.12.../urllib3/util/util.py#x1B[0m:38: in reraise > raise value.with_traceback(tb) > #x1B[1m#x1B[31m.venv/lib/python3.12.............../site-packages/urllib3/connectionpool.py#x1B[0m:789: in urlopen > response = self._make_request( > #x1B[1m#x1B[31m.venv/lib/python3.12.............../site-packages/urllib3/connectionpool.py#x1B[0m:536: in _make_request > response = conn.getresponse() > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/urllib3/connection.py#x1B[0m:464: in getresponse > httplib_response = super().getresponse() > #x1B[1m#x1B[31m.venv/lib/python3.12.../sentry_sdk/integrations/stdlib.py#x1B[0m:128: in getresponse > return real_getresponse(self, *args, **kwargs) > #x1B[1m#x1B[.../hostedtoolcache/Python/3.12.6................../x64/lib/python3.12/http/client.py#x1B[0m:1428: in getresponse > response.begin() > #x1B[1m#x1B[.../hostedtoolcache/Python/3.12.6................../x64/lib/python3.12/http/client.py#x1B[0m:331: in begin > version, status, reason = self._read_status() > #x1B[1m#x1B[.../hostedtoolcache/Python/3.12.6................../x64/lib/python3.12/http/client.py#x1B[0m:300: in _read_status > raise RemoteDisconnected("Remote end closed connection without" > #x1B[1m#x1B[31mE urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))#x1B[0m > > #x1B[33mDuring handling of the above exception, another exception occurred:#x1B[0m > #x1B[1m#x1B[.../api/endpoints/test_organization_stats_v2.py#x1B[0m:102: in setUp > self.store_outcomes( > #x1B[1m#x1B[.../sentry/testutils/cases.py#x1B[0m:2395: in store_outcomes > assert ( > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/requests/api.py#x1B[0m:115: in post > return request("post", url, data=data, json=json, **kwargs) > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/requests/api.py#x1B[0m:59: in request > return session.request(method=method, url=url, **kwargs) > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/requests/sessions.py#x1B[0m:589: in request > resp = self.send(prep, **send_kwargs) > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/requests/sessions.py#x1B[0m:703: in send > r = adapter.send(request, **kwargs) > #x1B[1m#x1B[31m.venv/lib/python3.12....../site-packages/requests/adapters.py#x1B[0m:682: in send > raise ConnectionError(err, request=request) > #x1B[1m#x1B[31mE requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))#x1B[0m > ```

To view more test analytics, go to the Test Analytics Dashboard Got feedback? Let us know on Github