Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
33 lines
1.7 KiB
Plaintext
33 lines
1.7 KiB
Plaintext
import type { Client } from './client';
|
|
import type { SentrySpan } from './tracing/sentrySpan';
|
|
import type { LegacyCSPReport } from './types-hoist/csp';
|
|
import type { DsnComponents } from './types-hoist/dsn';
|
|
import type { EventEnvelope, RawSecurityEnvelope, SessionEnvelope, SpanEnvelope } from './types-hoist/envelope';
|
|
import type { Event } from './types-hoist/event';
|
|
import type { SdkInfo } from './types-hoist/sdkinfo';
|
|
import type { SdkMetadata } from './types-hoist/sdkmetadata';
|
|
import type { Session, SessionAggregates } from './types-hoist/session';
|
|
/**
|
|
* Apply SdkInfo (name, version, packages, integrations) to the corresponding event key.
|
|
* Merge with existing data if any.
|
|
*
|
|
* @internal, exported only for testing
|
|
**/
|
|
export declare function _enhanceEventWithSdkInfo(event: Event, newSdkInfo?: SdkInfo): Event;
|
|
/** Creates an envelope from a Session */
|
|
export declare function createSessionEnvelope(session: Session | SessionAggregates, dsn?: DsnComponents, metadata?: SdkMetadata, tunnel?: string): SessionEnvelope;
|
|
/**
|
|
* Create an Envelope from an event.
|
|
*/
|
|
export declare function createEventEnvelope(event: Event, dsn?: DsnComponents, metadata?: SdkMetadata, tunnel?: string): EventEnvelope;
|
|
/**
|
|
* Create envelope from Span item.
|
|
*
|
|
* Takes an optional client and runs spans through `beforeSendSpan` if available.
|
|
*/
|
|
export declare function createSpanEnvelope(spans: [SentrySpan, ...SentrySpan[]], client?: Client): SpanEnvelope;
|
|
/**
|
|
* Create an Envelope from a CSP report.
|
|
*/
|
|
export declare function createRawSecurityEnvelope(report: LegacyCSPReport, dsn: DsnComponents, tunnel?: string, release?: string, environment?: string): RawSecurityEnvelope;
|
|
//# sourceMappingURL=envelope.d.ts.map |