1 | import type { StackFrame } from '@sentry/core';
|
2 | interface ContextLinesOptions {
|
3 | /**
|
4 | * Sets the number of context lines for each frame when loading a file.
|
5 | * Defaults to 7.
|
6 | *
|
7 | * Set to 0 to disable loading and inclusion of source files.
|
8 | **/
|
9 | frameContextLines?: number;
|
10 | }
|
11 | /**
|
12 | * Collects source context lines around the lines of stackframes pointing to JS embedded in
|
13 | * the current page's HTML.
|
14 | *
|
15 | * This integration DOES NOT work for stack frames pointing to JS files that are loaded by the browser.
|
16 | * For frames pointing to files, context lines are added during ingestion and symbolication
|
17 | * by attempting to download the JS files to the Sentry backend.
|
18 | *
|
19 | * Use this integration if you have inline JS code in HTML pages that can't be accessed
|
20 | * by our backend (e.g. due to a login-protected page).
|
21 | */
|
22 | export declare const contextLinesIntegration: (options?: ContextLinesOptions | undefined) => import("@sentry/core").Integration;
|
23 | /**
|
24 | * Only exported for testing
|
25 | */
|
26 | export declare function applySourceContextToFrame(frame: StackFrame, htmlLines: string[], htmlFilename: string, linesOfContext: number): StackFrame;
|
27 | export {};
|
28 | //# sourceMappingURL=contextlines.d.ts.map |
\ | No newline at end of file |