MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / createEnvelope

Function createEnvelope

packages/core/src/utils/envelope.ts:28–30  ·  view source on GitHub ↗
(headers: E[0], items: E[1] = [])

Source from the content-addressed store, hash-verified

26 * so that the envelope types resolve correctly.
27 */
28export function createEnvelope<E extends Envelope>(headers: E[0], items: E[1] = []): E {
29 return [headers, items] as E;
30}
31
32/**
33 * Add an item to an envelope.

Callers 15

utils.test.tsFile · 0.90
makeProfileChunkEnvelopeFunction · 0.90
makeEnvelopeRequestFunction · 0.90
envelope.test.tsFile · 0.90
offline.test.tsFile · 0.90
REPLAY_ENVELOPEFunction · 0.90
base.test.tsFile · 0.90
createSessionEnvelopeFunction · 0.90
createEventEnvelopeFunction · 0.90
createSpanEnvelopeFunction · 0.90

Calls

no outgoing calls

Tested by 2

makeEnvelopeRequestFunction · 0.72
REPLAY_ENVELOPEFunction · 0.72