-
Notifications
You must be signed in to change notification settings - Fork 142
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
♻️ Simplify RUM assembly #1588
♻️ Simplify RUM assembly #1588
Changes from 1 commit
df3c77c
7721941
a1b0bd2
39f1e21
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 |
---|---|---|
|
@@ -181,7 +181,7 @@ export type RawRumEvent = | |
| RawRumLongTaskEvent | ||
| RawRumActionEvent | ||
|
||
export interface RumContext { | ||
export interface RumContext extends Context { | ||
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. 💬 suggestion: we need to extend Maybe we could remove the I know this is a bit confusing, and there is a long standing TS issue related to that. |
||
date: TimeStamp | ||
application: { | ||
id: string | ||
|
@@ -194,6 +194,15 @@ export interface RumContext { | |
type: string | ||
has_replay?: boolean | ||
} | ||
view: { | ||
id: string | ||
referrer?: string | ||
url: string | ||
name?: string | ||
} | ||
action?: { | ||
id: string | string[] | ||
} | ||
synthetics?: { | ||
test_id: string | ||
result_id: string | ||
|
@@ -211,7 +220,7 @@ export interface RumContext { | |
} | ||
} | ||
|
||
export interface ViewContext extends Context { | ||
export interface ViewContext { | ||
service?: string | ||
version?: string | ||
view: { | ||
|
@@ -220,13 +229,13 @@ export interface ViewContext extends Context { | |
} | ||
} | ||
|
||
export interface ActionContext extends Context { | ||
export interface ActionContext { | ||
action: { | ||
id: string | string[] | ||
} | ||
} | ||
|
||
export interface UrlContext extends Context { | ||
export interface UrlContext { | ||
view: { | ||
url: string | ||
referrer: string | ||
|
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.
🥜 nitpick: maybe remove the
view
extra-level from those contexts