Skip to content

Commit c1766f0

Browse files
committed
Protocol version 5
1 parent 94acc7d commit c1766f0

4 files changed

Lines changed: 11 additions & 4 deletions

File tree

CHANGES

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Version 6.4.0
22
-------------
33

4-
Some major backend changes are introduced in Sentry 6.3.0.
4+
Some major backend changes are introduced in Sentry 6.4.0.
55

66
Search
77
======
@@ -27,6 +27,13 @@ Additional Changes
2727
- Charts now show tooltips describing the datapoint.
2828
- JavaScript sourcemaps now support embedded sources.
2929
- Stream annotations can now be customized to show any tags (not just number of users).
30+
- Stacktrace frames now get truncated down to a maximum length of 50.
31+
32+
Protocol Version 5
33+
==================
34+
35+
- sentry_version should be sent as '5'.
36+
- The stacktrace interface now accepts a 'frames_omitted' tuple.
3037

3138
Version 6.3.0
3239
-------------

docs/developer/client/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ An authentication header is expected to be sent along with the message body, whi
353353

354354
.. data:: sentry_version
355355

356-
The protocol version. This should be sent as the value '4'.
356+
The protocol version. This should be sent as the value '5'.
357357

358358
.. data:: sentry_client
359359

src/sentry/testutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
def get_auth_header(client, api_key=None, secret_key=None):
4141
header = [
4242
('sentry_client', client),
43-
('sentry_version', '4'),
43+
('sentry_version', '5'),
4444
]
4545

4646
if api_key:

src/sentry/web/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def _parse_header(self, request, project):
103103
server_version = auth_vars.get('sentry_version', '1.0')
104104
client = auth_vars.get('sentry_client', request.META.get('HTTP_USER_AGENT'))
105105

106-
if server_version not in ('2.0', '3', '4'):
106+
if server_version not in ('2.0', '3', '4', '5'):
107107
raise APIError('Client/server version mismatch: Unsupported protocol version (%s)' % server_version)
108108

109109
if not client:

0 commit comments

Comments
 (0)