-
Notifications
You must be signed in to change notification settings - Fork 340
fix: Not all console.error shows up in session replay play bar annotations #765
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
Changes from all commits
e0b1b0b
583203a
69d9cee
b998797
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -75,8 +75,11 @@ export default function Playbar({ | |||||
| const isError = | ||||||
| event.severity_text?.toLowerCase() === 'error' || | ||||||
| event.component === 'error' || | ||||||
| event.component === 'console' || | ||||||
|
||||||
| event.component === 'console' || | |
| event.component?.toLowerCase() === 'console' || |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -314,7 +314,8 @@ export default function SessionSubpanel({ | |
| [traceSource], | ||
| ); | ||
|
|
||
| const filteredEventsFilter = useMemo( | ||
| // Events shown in the highlighted tab | ||
| const highlightedEventsFilter = useMemo( | ||
| () => ({ | ||
| type: 'lucene' as const, | ||
| condition: `${traceSource.resourceAttributesExpression}.rum.sessionId:"${rumSessionId}" | ||
|
|
@@ -363,7 +364,7 @@ export default function SessionSubpanel({ | |
| offset: 0, | ||
| }, | ||
| filters: [ | ||
| filteredEventsFilter, | ||
| tab === 'highlighted' ? highlightedEventsFilter : allEventsFilter, | ||
| ...(where ? [{ type: whereLanguage, condition: where }] : []), | ||
| ], | ||
| }), | ||
|
|
@@ -377,7 +378,9 @@ export default function SessionSubpanel({ | |
| end, | ||
| whereLanguage, | ||
| searchedQuery, | ||
| filteredEventsFilter, | ||
| tab, | ||
| highlightedEventsFilter, | ||
| allEventsFilter, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ernestii just curious here...what is
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| where, | ||
| ], | ||
| ); | ||
|
|
@@ -410,7 +413,7 @@ export default function SessionSubpanel({ | |
| offset: 0, | ||
| }, | ||
| filters: [ | ||
| tab === 'highlighted' ? filteredEventsFilter : allEventsFilter, | ||
| tab === 'highlighted' ? highlightedEventsFilter : allEventsFilter, | ||
| ...(where ? [{ type: whereLanguage, condition: where }] : []), | ||
| ], | ||
| }), | ||
|
|
@@ -425,7 +428,7 @@ export default function SessionSubpanel({ | |
| whereLanguage, | ||
| searchedQuery, | ||
| tab, | ||
| filteredEventsFilter, | ||
| highlightedEventsFilter, | ||
| allEventsFilter, | ||
| where, | ||
| ], | ||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ernestii what's the reason of this change? This seems to break the replayer at times since
playerContainerref will be null in theuseEffectabove, seems to introduce a race condition where session replays will incorrectly show up as "no replay available"