-
Couldn't load subscription status.
- Fork 101
feat(web-sdk): Properly allow users to override stack frame parsing settings #1316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
elee1766
wants to merge
29
commits into
grafana:main
Choose a base branch
from
elee1766:feature/max-line-length
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+93
−71
Open
Changes from 11 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
f2a1365
make it so that you can pass in a stack trace parser to the browser c…
elee1766 66c8eec
noot
elee1766 292dc47
noot
elee1766 a87ce58
add a test that has timing
elee1766 2d27b16
changelog
elee1766 a1de08f
run lint
elee1766 33df376
run eslint
elee1766 57da385
run prettier
elee1766 cc23677
noot
elee1766 ed23670
skipping works
elee1766 747a0a3
better test
elee1766 85df37e
noot
elee1766 c4414d1
noot
elee1766 8c1c8e3
noot
elee1766 44a87b6
Merge branch 'main' into feature/max-line-length
elee1766 feee0ef
noot
elee1766 b1d2835
noot
elee1766 3271d1a
noot
elee1766 1746b83
remove consturctor
elee1766 20057ea
export
elee1766 4581dab
stack trace parser
elee1766 90b9aa8
changelog
elee1766 2b7175f
Merge branch 'main' into feature/max-line-length
elee1766 007ee98
with factory, i think this is the best
elee1766 805435a
move the code, allow optional
elee1766 115286f
noot
elee1766 b0c168a
noot
elee1766 2c9d7a2
fmt
elee1766 e32b0b7
Merge branch 'main' into feature/max-line-length
elee1766 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,3 @@ | ||
| export { ErrorsInstrumentation } from './instrumentation'; | ||
|
|
||
| export { buildStackFrame, getDataFromSafariExtensions, getStackFramesFromError, parseStacktrace } from './stackFrames'; | ||
|
|
||
| export type { ErrorEvent, ExtendedPromiseRejectionEvent } from './types'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
packages/web-sdk/src/instrumentations/errors/stackFrames/parseStacktrace.ts
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import type { ExtendedError, Stacktrace, StacktraceParser } from '@grafana/faro-core'; | ||
|
|
||
| import { getStackFramesFromError } from './getStackFramesFromError'; | ||
| import type { StackframeParserOptions } from './types'; | ||
|
|
||
| export function parseStacktrace(error: ExtendedError): Stacktrace { | ||
| return { | ||
| frames: getStackFramesFromError(error), | ||
| }; | ||
| } | ||
|
|
||
| export function newStackTraceParser(options?: StackframeParserOptions): StacktraceParser { | ||
| return (error: ExtendedError) => { | ||
| return { | ||
| frames: getStackFramesFromError(error, options), | ||
| }; | ||
| }; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export interface StackframeParserOptions { | ||
| maximumLineLength?: number; | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.