Overrides the DSN in the envelope header
(envelope: Envelope, dsn: string)
| 72 | |
| 73 | /** Overrides the DSN in the envelope header */ |
| 74 | function overrideDsn(envelope: Envelope, dsn: string): Envelope { |
| 75 | return createEnvelope( |
| 76 | dsn |
| 77 | ? { |
| 78 | ...envelope[0], |
| 79 | dsn, |
| 80 | } |
| 81 | : envelope[0], |
| 82 | envelope[1], |
| 83 | ); |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * Creates a transport that can send events to different DSNs depending on the envelope contents. |
no test coverage detected