We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aecc71 commit 3910fa9Copy full SHA for 3910fa9
sentry_sdk/client.py
@@ -330,7 +330,12 @@ def capture_event(
330
if session:
331
self._update_session_from_event(session, event)
332
333
- self.transport.capture_event(event_opt)
+ if event.get("type") == "transaction":
334
+ # Transactions should go to the /envelope/ endpoint.
335
+ self.transport.capture_envelope(Envelope(items=[event]))
336
+ else:
337
+ # All other events go to the /store/ endpoint.
338
+ self.transport.capture_event(event_opt)
339
return event_id
340
341
def capture_session(
0 commit comments