datadog-frontend-toolkit 1.0.47 → 1.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -70,7 +70,7 @@ function buildMonitorTemplates(service, env, channels = [], team) {
|
|
|
70
70
|
{
|
|
71
71
|
name: `${service} (${env}) - Poor LCP Performance`,
|
|
72
72
|
type: 'rum alert',
|
|
73
|
-
query: `rum("service:${service} env:${env} @type:view").rollup("avg", "@view.largest_contentful_paint").last("
|
|
73
|
+
query: `rum("service:${service} env:${env} @type:view").rollup("avg", "@view.largest_contentful_paint").last("4h") > 3000000000`,
|
|
74
74
|
message: `## Poor LCP Performance\n\n**Service:** ${service}\n**Environment:** ${env}\n\nThe average Largest Contentful Paint has exceeded 3 seconds.\n\nThis directly impacts user experience and Core Web Vitals scores.${notify}`,
|
|
75
75
|
tags,
|
|
76
76
|
options: {
|
|
@@ -84,7 +84,7 @@ function buildMonitorTemplates(service, env, channels = [], team) {
|
|
|
84
84
|
{
|
|
85
85
|
name: `${service} (${env}) - High CLS Score`,
|
|
86
86
|
type: 'rum alert',
|
|
87
|
-
query: `rum("service:${service} env:${env} @type:view").rollup("avg", "@view.cumulative_layout_shift").last("
|
|
87
|
+
query: `rum("service:${service} env:${env} @type:view").rollup("avg", "@view.cumulative_layout_shift").last("4h") > 0.2`,
|
|
88
88
|
message: `## High Cumulative Layout Shift\n\n**Service:** ${service}\n**Environment:** ${env}\n\nThe average CLS has exceeded 0.2.\n\nLayout shifts are causing a poor user experience.${notify}`,
|
|
89
89
|
tags,
|
|
90
90
|
options: {
|
|
@@ -126,7 +126,7 @@ function buildMonitorTemplates(service, env, channels = [], team) {
|
|
|
126
126
|
{
|
|
127
127
|
name: `${service} (${env}) - Poor INP Performance`,
|
|
128
128
|
type: 'rum alert',
|
|
129
|
-
query: `rum("service:${service} env:${env} @type:view").rollup("avg", "@view.interaction_to_next_paint").last("
|
|
129
|
+
query: `rum("service:${service} env:${env} @type:view").rollup("avg", "@view.interaction_to_next_paint").last("4h") > 400000000`,
|
|
130
130
|
message: `## Poor Interaction to Next Paint\n\n**Service:** ${service}\n**Environment:** ${env}\n\nThe average INP has exceeded 400ms.\n\nUser interactions are feeling sluggish.${notify}`,
|
|
131
131
|
tags,
|
|
132
132
|
options: {
|
|
@@ -67,7 +67,7 @@ export function buildMonitorTemplates(service, env, channels = [], team) {
|
|
|
67
67
|
{
|
|
68
68
|
name: `${service} (${env}) - Poor LCP Performance`,
|
|
69
69
|
type: 'rum alert',
|
|
70
|
-
query: `rum("service:${service} env:${env} @type:view").rollup("avg", "@view.largest_contentful_paint").last("
|
|
70
|
+
query: `rum("service:${service} env:${env} @type:view").rollup("avg", "@view.largest_contentful_paint").last("4h") > 3000000000`,
|
|
71
71
|
message: `## Poor LCP Performance\n\n**Service:** ${service}\n**Environment:** ${env}\n\nThe average Largest Contentful Paint has exceeded 3 seconds.\n\nThis directly impacts user experience and Core Web Vitals scores.${notify}`,
|
|
72
72
|
tags,
|
|
73
73
|
options: {
|
|
@@ -81,7 +81,7 @@ export function buildMonitorTemplates(service, env, channels = [], team) {
|
|
|
81
81
|
{
|
|
82
82
|
name: `${service} (${env}) - High CLS Score`,
|
|
83
83
|
type: 'rum alert',
|
|
84
|
-
query: `rum("service:${service} env:${env} @type:view").rollup("avg", "@view.cumulative_layout_shift").last("
|
|
84
|
+
query: `rum("service:${service} env:${env} @type:view").rollup("avg", "@view.cumulative_layout_shift").last("4h") > 0.2`,
|
|
85
85
|
message: `## High Cumulative Layout Shift\n\n**Service:** ${service}\n**Environment:** ${env}\n\nThe average CLS has exceeded 0.2.\n\nLayout shifts are causing a poor user experience.${notify}`,
|
|
86
86
|
tags,
|
|
87
87
|
options: {
|
|
@@ -123,7 +123,7 @@ export function buildMonitorTemplates(service, env, channels = [], team) {
|
|
|
123
123
|
{
|
|
124
124
|
name: `${service} (${env}) - Poor INP Performance`,
|
|
125
125
|
type: 'rum alert',
|
|
126
|
-
query: `rum("service:${service} env:${env} @type:view").rollup("avg", "@view.interaction_to_next_paint").last("
|
|
126
|
+
query: `rum("service:${service} env:${env} @type:view").rollup("avg", "@view.interaction_to_next_paint").last("4h") > 400000000`,
|
|
127
127
|
message: `## Poor Interaction to Next Paint\n\n**Service:** ${service}\n**Environment:** ${env}\n\nThe average INP has exceeded 400ms.\n\nUser interactions are feeling sluggish.${notify}`,
|
|
128
128
|
tags,
|
|
129
129
|
options: {
|
|
@@ -70,7 +70,7 @@ function buildMonitorTemplates(service, env, channels = [], team) {
|
|
|
70
70
|
{
|
|
71
71
|
name: `${service} (${env}) - Poor LCP Performance`,
|
|
72
72
|
type: 'rum alert',
|
|
73
|
-
query: `rum("service:${service} env:${env} @type:view").rollup("avg", "@view.largest_contentful_paint").last("
|
|
73
|
+
query: `rum("service:${service} env:${env} @type:view").rollup("avg", "@view.largest_contentful_paint").last("4h") > 3000000000`,
|
|
74
74
|
message: `## Poor LCP Performance\n\n**Service:** ${service}\n**Environment:** ${env}\n\nThe average Largest Contentful Paint has exceeded 3 seconds.\n\nThis directly impacts user experience and Core Web Vitals scores.${notify}`,
|
|
75
75
|
tags,
|
|
76
76
|
options: {
|
|
@@ -84,7 +84,7 @@ function buildMonitorTemplates(service, env, channels = [], team) {
|
|
|
84
84
|
{
|
|
85
85
|
name: `${service} (${env}) - High CLS Score`,
|
|
86
86
|
type: 'rum alert',
|
|
87
|
-
query: `rum("service:${service} env:${env} @type:view").rollup("avg", "@view.cumulative_layout_shift").last("
|
|
87
|
+
query: `rum("service:${service} env:${env} @type:view").rollup("avg", "@view.cumulative_layout_shift").last("4h") > 0.2`,
|
|
88
88
|
message: `## High Cumulative Layout Shift\n\n**Service:** ${service}\n**Environment:** ${env}\n\nThe average CLS has exceeded 0.2.\n\nLayout shifts are causing a poor user experience.${notify}`,
|
|
89
89
|
tags,
|
|
90
90
|
options: {
|
|
@@ -126,7 +126,7 @@ function buildMonitorTemplates(service, env, channels = [], team) {
|
|
|
126
126
|
{
|
|
127
127
|
name: `${service} (${env}) - Poor INP Performance`,
|
|
128
128
|
type: 'rum alert',
|
|
129
|
-
query: `rum("service:${service} env:${env} @type:view").rollup("avg", "@view.interaction_to_next_paint").last("
|
|
129
|
+
query: `rum("service:${service} env:${env} @type:view").rollup("avg", "@view.interaction_to_next_paint").last("4h") > 400000000`,
|
|
130
130
|
message: `## Poor Interaction to Next Paint\n\n**Service:** ${service}\n**Environment:** ${env}\n\nThe average INP has exceeded 400ms.\n\nUser interactions are feeling sluggish.${notify}`,
|
|
131
131
|
tags,
|
|
132
132
|
options: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "datadog-frontend-toolkit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.48",
|
|
4
4
|
"description": "Enterprise-grade, framework-agnostic frontend observability toolkit for Datadog. Auto-instruments RUM, Logs, Error Tracking, Performance Monitoring, and provisions Dashboards, Monitors & SLOs.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|