-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
151 additions
and
23 deletions.
There are no files selected for viewing
120 changes: 120 additions & 0 deletions
120
packages/core/src/domain/internalMonitoring/telemetryEvent.types.ts
This file contains 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,120 @@ | ||
/* eslint-disable */ | ||
/** | ||
* DO NOT MODIFY IT BY HAND. Run `yarn rum-events-format:sync` instead. | ||
*/ | ||
|
||
/** | ||
* Schema of all properties of a telemetry event | ||
*/ | ||
export type TelemetryEvent = TelemetryErrorEvent | TelemetryDebugEvent | ||
/** | ||
* Schema of all properties of a telemetry error event | ||
*/ | ||
export type TelemetryErrorEvent = CommonTelemetryProperties & { | ||
/** | ||
* Level/severity of the log | ||
*/ | ||
status: 'error' | ||
/** | ||
* Body of the log | ||
*/ | ||
message: string | ||
/** | ||
* Error properties | ||
*/ | ||
error?: { | ||
/** | ||
* The stack trace or the complementary information about the error | ||
*/ | ||
stack?: string | ||
/** | ||
* The error type or kind (or code in some cases) | ||
*/ | ||
kind?: string | ||
[k: string]: unknown | ||
} | ||
[k: string]: unknown | ||
} | ||
/** | ||
* Schema of all properties of a telemetry debug event | ||
*/ | ||
export type TelemetryDebugEvent = CommonTelemetryProperties & { | ||
/** | ||
* Level/severity of the log | ||
*/ | ||
status: 'debug' | ||
/** | ||
* Body of the log | ||
*/ | ||
message: string | ||
[k: string]: unknown | ||
} | ||
|
||
/** | ||
* Schema of common properties of Telemetry events | ||
*/ | ||
export interface CommonTelemetryProperties { | ||
/** | ||
* Internal properties | ||
*/ | ||
_dd: { | ||
/** | ||
* Event type | ||
*/ | ||
event_type: 'internal_telemetry' | ||
[k: string]: unknown | ||
} | ||
/** | ||
* Start of the event in ms from epoch | ||
*/ | ||
date: number | ||
/** | ||
* The SDK generating the telemetry event | ||
*/ | ||
service: string | ||
/** | ||
* The version of the SDK generating the telemetry event | ||
*/ | ||
version: string | ||
/** | ||
* Application properties | ||
*/ | ||
readonly application?: { | ||
/** | ||
* UUID of the application | ||
*/ | ||
id: string | ||
[k: string]: unknown | ||
} | ||
/** | ||
* Session properties | ||
*/ | ||
session?: { | ||
/** | ||
* UUID of the session | ||
*/ | ||
id: string | ||
[k: string]: unknown | ||
} | ||
/** | ||
* View properties | ||
*/ | ||
view?: { | ||
/** | ||
* UUID of the view | ||
*/ | ||
id: string | ||
[k: string]: unknown | ||
} | ||
/** | ||
* Action properties | ||
*/ | ||
action?: { | ||
/** | ||
* UUID of the action | ||
*/ | ||
id: string | ||
[k: string]: unknown | ||
} | ||
[k: string]: unknown | ||
} |
This file contains 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 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
Submodule rum-events-format
updated
22 files
+4 −13 | rum-events-format.json | |
+0 −0 | samples/rum/action.json | |
+0 −0 | samples/rum/app_start.json | |
+0 −0 | samples/rum/error.json | |
+0 −0 | samples/rum/extended_error.json | |
+0 −0 | samples/rum/long_task.json | |
+0 −0 | samples/rum/resource.json | |
+0 −0 | samples/rum/view.json | |
+23 −0 | samples/telemetry/debug.json | |
+26 −0 | samples/telemetry/error.json | |
+24 −0 | schemas/rum-events-schema.json | |
+0 −0 | schemas/rum/_common-schema.json | |
+0 −0 | schemas/rum/action-schema.json | |
+0 −0 | schemas/rum/error-schema.json | |
+0 −0 | schemas/rum/long_task-schema.json | |
+0 −0 | schemas/rum/resource-schema.json | |
+0 −0 | schemas/rum/view-schema.json | |
+15 −0 | schemas/telemetry-events-schema.json | |
+84 −0 | schemas/telemetry/_common-schema.json | |
+29 −0 | schemas/telemetry/debug-schema.json | |
+43 −0 | schemas/telemetry/error-schema.json | |
+1 −1 | validate.sh |
This file contains 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