@@ -369,6 +369,7 @@ export type RumErrorEvent = CommonProperties &
369369 | 'video'
370370 [ k : string ] : unknown
371371 }
372+ readonly graphql ?: RumGraphql
372373 [ k : string ] : unknown
373374 }
374375 /**
@@ -506,7 +507,7 @@ export type RumErrorEvent = CommonProperties &
506507 /**
507508 * Internal properties
508509 */
509- readonly _dd ?: {
510+ readonly _dd ?: RumTrace & {
510511 /**
511512 * Profiling context
512513 */
@@ -878,86 +879,13 @@ export type RumResourceEvent = CommonProperties &
878879 }
879880 [ k : string ] : unknown
880881 }
881- /**
882- * GraphQL requests parameters
883- */
884- readonly graphql ?: {
885- /**
886- * Type of the GraphQL operation
887- */
888- readonly operationType ?: 'query' | 'mutation' | 'subscription'
889- /**
890- * Name of the GraphQL operation
891- */
892- readonly operationName ?: string
893- /**
894- * Content of the GraphQL operation
895- */
896- payload ?: string
897- /**
898- * String representation of the operation variables
899- */
900- variables ?: string
901- /**
902- * Number of GraphQL errors in the response
903- */
904- readonly error_count ?: number
905- /**
906- * Array of GraphQL errors from the response
907- */
908- readonly errors ?: {
909- /**
910- * Error message
911- */
912- readonly message : string
913- /**
914- * Error code (used by some providers)
915- */
916- readonly code ?: string
917- /**
918- * Array of error locations in the GraphQL query
919- */
920- readonly locations ?: {
921- /**
922- * Line number where the error occurred
923- */
924- readonly line : number
925- /**
926- * Column number where the error occurred
927- */
928- readonly column : number
929- [ k : string ] : unknown
930- } [ ]
931- /**
932- * Path to the field that caused the error
933- */
934- readonly path ?: ( string | number ) [ ]
935- [ k : string ] : unknown
936- } [ ]
937- [ k : string ] : unknown
938- }
882+ readonly graphql ?: RumGraphql
939883 [ k : string ] : unknown
940884 }
941885 /**
942886 * Internal properties
943887 */
944- readonly _dd ?: {
945- /**
946- * span identifier in decimal format
947- */
948- readonly span_id ?: string
949- /**
950- * parent span identifier in decimal format
951- */
952- readonly parent_span_id ?: string
953- /**
954- * trace identifier, either a 64 bit decimal number or a 128 bit hexadecimal number padded with 0s
955- */
956- readonly trace_id ?: string
957- /**
958- * trace sample rate in decimal format
959- */
960- readonly rule_psr ?: number
888+ readonly _dd ?: RumTrace & {
961889 /**
962890 * Whether the resource should be discarded or indexed
963891 */
@@ -1617,6 +1545,86 @@ export interface ActionChildProperties {
16171545 }
16181546 [ k : string ] : unknown
16191547}
1548+ /**
1549+ * GraphQL request parameters
1550+ */
1551+ export interface RumGraphql {
1552+ /**
1553+ * Type of the GraphQL operation
1554+ */
1555+ readonly operationType ?: 'query' | 'mutation' | 'subscription'
1556+ /**
1557+ * Name of the GraphQL operation
1558+ */
1559+ readonly operationName ?: string
1560+ /**
1561+ * Content of the GraphQL operation
1562+ */
1563+ payload ?: string
1564+ /**
1565+ * String representation of the operation variables
1566+ */
1567+ variables ?: string
1568+ /**
1569+ * Number of GraphQL errors in the response
1570+ */
1571+ readonly error_count ?: number
1572+ /**
1573+ * Array of GraphQL errors from the response
1574+ */
1575+ readonly errors ?: {
1576+ /**
1577+ * Error message
1578+ */
1579+ readonly message : string
1580+ /**
1581+ * Error code (used by some providers)
1582+ */
1583+ readonly code ?: string
1584+ /**
1585+ * Array of error locations in the GraphQL query
1586+ */
1587+ readonly locations ?: {
1588+ /**
1589+ * Line number where the error occurred
1590+ */
1591+ readonly line : number
1592+ /**
1593+ * Column number where the error occurred
1594+ */
1595+ readonly column : number
1596+ [ k : string ] : unknown
1597+ } [ ]
1598+ /**
1599+ * Path to the field that caused the error
1600+ */
1601+ readonly path ?: ( string | number ) [ ]
1602+ [ k : string ] : unknown
1603+ } [ ]
1604+ [ k : string ] : unknown
1605+ }
1606+ /**
1607+ * Trace context properties
1608+ */
1609+ export interface RumTrace {
1610+ /**
1611+ * span identifier in decimal format
1612+ */
1613+ readonly span_id ?: string
1614+ /**
1615+ * parent span identifier in decimal format
1616+ */
1617+ readonly parent_span_id ?: string
1618+ /**
1619+ * trace identifier, either a 64 bit decimal number or a 128 bit hexadecimal number padded with 0s
1620+ */
1621+ readonly trace_id ?: string
1622+ /**
1623+ * trace sample rate in decimal format
1624+ */
1625+ readonly rule_psr ?: number
1626+ [ k : string ] : unknown
1627+ }
16201628/**
16211629 * RUM Profiler Internal Context schema
16221630 */
0 commit comments