|
| 1 | +# Event processing & sending |
| 2 | + |
| 3 | +This document gives an outline for how event sending works, and which which places it goes through. |
| 4 | + |
| 5 | +## Errors |
| 6 | + |
| 7 | +* `hub.captureException()` |
| 8 | + * `client.captureException()` (see baseclient) |
| 9 | + * `checkOrSetAlreadyCaught()` |
| 10 | + * `baseclient._process()` |
| 11 | + * `baseclient.eventFromException()` |
| 12 | + * `baseclient._captureEvent()` |
| 13 | + * `baseclient._processEvent()` |
| 14 | + * `baseclient._prepareEvent()` |
| 15 | + * `baseclient._applyClientOptions()` |
| 16 | + * `baseclient._applyIntegrationsMetadata()` |
| 17 | + * `scope.applyToEvent()` |
| 18 | + * `baseclient._normalizeEvent()` |
| 19 | + * `baseclient._updateSessionFromEvent()` |
| 20 | + * `baseclient.sendEvent()` |
| 21 | + * `createEventEnvelope()` |
| 22 | + * `getSdkMetadataForEnvelopeHeader()` |
| 23 | + * `enhanceEventWithSdkInfo()` |
| 24 | + * `createEventEnvelopeHeaders()` |
| 25 | + * `createEnvelope()` |
| 26 | + * `addItemToEnvelope()` |
| 27 | + * `createAttachmentEnvelopeItem()` |
| 28 | + * `baseclient._sendEnvelope()` |
| 29 | + * `transport.send()` |
| 30 | + |
| 31 | +## Transactions |
| 32 | + |
| 33 | +* `transaction.finish()` |
| 34 | + * `transaction.getTraceContext()` |
| 35 | + * `transaction.getDynamicSamplingContext()` |
| 36 | + * `hub.captureEvent()` |
| 37 | + * `client.captureEvent()` (see baseclient) |
| 38 | + * `checkOrSetAlreadyCaught()` |
| 39 | + * `baseclient._process()` |
| 40 | + * `baseclient.eventFromException()` |
| 41 | + * `baseclient._captureEvent()` |
| 42 | + * `baseclient._processEvent()` |
| 43 | + * `baseclient._prepareEvent()` |
| 44 | + * `baseclient._applyClientOptions()` |
| 45 | + * `baseclient._applyIntegrationsMetadata()` |
| 46 | + * `scope.applyToEvent()` |
| 47 | + * `baseclient._normalizeEvent()` |
| 48 | + * `baseclient._updateSessionFromEvent()` |
| 49 | + * `baseclient.sendEvent()` |
| 50 | + * `createEventEnvelope()` |
| 51 | + * `getSdkMetadataForEnvelopeHeader()` |
| 52 | + * `enhanceEventWithSdkInfo()` |
| 53 | + * `createEventEnvelopeHeaders()` |
| 54 | + * `createEnvelope()` |
| 55 | + * `addItemToEnvelope()` |
| 56 | + * `createAttachmentEnvelopeItem()` |
| 57 | + * `baseclient._sendEnvelope()` |
| 58 | + * `transport.send()` |
| 59 | + |
| 60 | +## Sessions |
| 61 | + |
| 62 | +* `hub.captureSession()` |
| 63 | + * `hub.endSession()` |
| 64 | + * `closeSession()` |
| 65 | + * `hub._sendSessionUpdate()` |
| 66 | + * `scope.setSession()` |
| 67 | + * `hub._sendSessionUpdate()` |
| 68 | + * `client.captureSession()` (see baseclient) |
| 69 | + * `baseclient.sendSession()` |
| 70 | + * `createSessionEnvelope()` |
| 71 | + * `getSdkMetadataForEnvelopeHeader()` |
| 72 | + * `createEnvelope()` |
| 73 | + * `baseclient._sendEnvelope()` |
| 74 | + * `transport.send()` |
| 75 | + * `updateSession()` |
| 76 | + |
| 77 | +## Replay (WIP) |
| 78 | + |
| 79 | +* `replay.sendReplayRequest()` |
| 80 | + * `createPayload()` |
| 81 | + * `getReplayEvent()` |
| 82 | + * `client._prepareEvent()` (see baseclient) |
| 83 | + * `baseclient._applyClientOptions()` |
| 84 | + * `baseclient._applyIntegrationsMetadata()` |
| 85 | + * `scope.applyToEvent()` |
| 86 | + * `baseclient._normalizeEvent()` |
| 87 | + * `baseclient._updateSessionFromEvent()` |
| 88 | + * `createReplayEnvelope()` |
| 89 | + * `createEnvelope()` |
| 90 | + * `transport.send()` |
| 91 | + |
| 92 | +## Client Reports |
| 93 | + |
| 94 | +* `browser.client.constructor()` |
| 95 | + * `browser.client._flushOutcomes()` |
| 96 | + * `getEnvelopeEndpointWithUrlEncodedAuth()` |
| 97 | + * `createClientReportEnvelope()` |
| 98 | + * `baseclient._sendEnvelope()` |
| 99 | + * `transport.send()` |
0 commit comments