-
Notifications
You must be signed in to change notification settings - Fork 8
[RUM-14619] Add AddViewLoadingTime telemetry to browser schema #352
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
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 |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| { | ||
| "_dd": { | ||
| "format_version": 2 | ||
| }, | ||
| "type": "telemetry", | ||
| "date": 1591284175342, | ||
| "service": "browser-sdk", | ||
| "source": "browser", | ||
| "version": "1.2.3", | ||
| "application": { | ||
| "id": "ac8218cf-498b-4d33-bd44-151095959547" | ||
| }, | ||
| "session": { | ||
| "id": "cacbf45c-3a05-48ce-b066-d76349460599" | ||
| }, | ||
| "view": { | ||
| "id": "623d50fd-75cf-4025-97d2-e51ff94171f6" | ||
| }, | ||
| "action": { | ||
| "id": "ae3a5d82-cdd1-468d-9bc9-3aa9e54d953c" | ||
| }, | ||
| "experimental_features": [], | ||
| "telemetry": { | ||
| "type": "usage", | ||
| "usage": { | ||
| "feature": "addViewLoadingTime" | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
| "_dd": { | ||
| "format_version": 2 | ||
| }, | ||
| "type": "telemetry", | ||
| "date": 1591284175342, | ||
| "service": "mobile-sdk", | ||
| "source": "ios", | ||
| "version": "1.2.3", | ||
| "application": { | ||
| "id": "ac8218cf-498b-4d33-bd44-151095959547" | ||
| }, | ||
| "session": { | ||
| "id": "cacbf45c-3a05-48ce-b066-d76349460599" | ||
| }, | ||
| "view": { | ||
| "id": "623d50fd-75cf-4025-97d2-e51ff94171f6" | ||
| }, | ||
| "action": { | ||
| "id": "ae3a5d82-cdd1-468d-9bc9-3aa9e54d953c" | ||
| }, | ||
| "experimental_features": [], | ||
| "telemetry": { | ||
| "type": "usage", | ||
| "usage": { | ||
| "feature": "addViewLoadingTime", | ||
| "no_view": true, | ||
| "overwritten": false | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -311,6 +311,29 @@ | |
| "const": "graphql-request" | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "required": ["feature"], | ||
| "title": "AddViewLoadingTime", | ||
| "properties": { | ||
| "feature": { | ||
| "type": "string", | ||
| "description": "addViewLoadingTime API", | ||
| "const": "addViewLoadingTime" | ||
| }, | ||
| "no_view": { | ||
| "type": "boolean", | ||
| "description": "Whether the view is not available" | ||
| }, | ||
| "no_active_view": { | ||
| "type": "boolean", | ||
| "description": "Whether the available view is not active" | ||
| }, | ||
|
Comment on lines
+324
to
+331
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. Quick alignment check: are these tracking call-site options (what the caller explicitly passed) or runtime state (what the environment looked like at call time)? The browser-sdk guidance says
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. These are mobile-only fields that track environmental state at call time. Indeed, they don't fit the "call-site info only" principle. That said, they already ship in the mobile SDKs and we're just moving them to the common schema for consolidation, while making them optional so the browser SDK can omit them entirely. I feel changing the mobile behavior would be out of scope here, but let me know 🙇 |
||
| "overwritten": { | ||
| "type": "boolean", | ||
| "description": "Whether this call overwrote a previously set loading time" | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.