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
44 lines
2.0 KiB
Plaintext
44 lines
2.0 KiB
Plaintext
import type { Client } from '../client';
|
|
import type { Log, SerializedLog } from '../types-hoist/log';
|
|
/**
|
|
* Captures a serialized log event and adds it to the log buffer for the given client.
|
|
*
|
|
* @param client - A client. Uses the current client if not provided.
|
|
* @param serializedLog - The serialized log event to capture.
|
|
*
|
|
* @experimental This method will experience breaking changes. This is not yet part of
|
|
* the stable Sentry SDK API and can be changed or removed without warning.
|
|
*/
|
|
export declare function _INTERNAL_captureSerializedLog(client: Client, serializedLog: SerializedLog): void;
|
|
/**
|
|
* Captures a log event and sends it to Sentry.
|
|
*
|
|
* @param log - The log event to capture.
|
|
* @param scope - A scope. Uses the current scope if not provided.
|
|
* @param client - A client. Uses the current client if not provided.
|
|
* @param captureSerializedLog - A function to capture the serialized log.
|
|
*
|
|
* @experimental This method will experience breaking changes. This is not yet part of
|
|
* the stable Sentry SDK API and can be changed or removed without warning.
|
|
*/
|
|
export declare function _INTERNAL_captureLog(beforeLog: Log, currentScope?: import("..").Scope, captureSerializedLog?: (client: Client, log: SerializedLog) => void): void;
|
|
/**
|
|
* Flushes the logs buffer to Sentry.
|
|
*
|
|
* @param client - A client.
|
|
* @param maybeLogBuffer - A log buffer. Uses the log buffer for the given client if not provided.
|
|
*
|
|
* @experimental This method will experience breaking changes. This is not yet part of
|
|
* the stable Sentry SDK API and can be changed or removed without warning.
|
|
*/
|
|
export declare function _INTERNAL_flushLogsBuffer(client: Client, maybeLogBuffer?: Array<SerializedLog>): void;
|
|
/**
|
|
* Returns the log buffer for a given client.
|
|
*
|
|
* Exported for testing purposes.
|
|
*
|
|
* @param client - The client to get the log buffer for.
|
|
* @returns The log buffer for the given client.
|
|
*/
|
|
export declare function _INTERNAL_getLogBuffer(client: Client): Array<SerializedLog> | undefined;
|
|
//# sourceMappingURL=internal.d.ts.map |