datadog-frontend-toolkit 1.0.30 → 1.0.31

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.
Files changed (2) hide show
  1. package/README.md +20 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -341,6 +341,9 @@ npx datadog-frontend-toolkit setup -s my-app -e production
341
341
  # Dry run (preview only)
342
342
  npx datadog-frontend-toolkit setup -s my-app -e production --dry-run
343
343
 
344
+ # Force update existing resources (keeps same URLs/IDs)
345
+ npx datadog-frontend-toolkit setup -s my-app -e production --force
346
+
344
347
  # Skip specific resources
345
348
  npx datadog-frontend-toolkit setup -s my-app -e production --no-slos
346
349
  ```
@@ -373,14 +376,14 @@ After provisioning, the CLI outputs **clickable direct links** to every resource
373
376
 
374
377
  ```
375
378
  ✅ Dashboards:
376
- [Auto] my-app - Frontend Observability
379
+ my-app - Frontend Observability
377
380
  https://app.datadoghq.com/dashboard/abc-def-ghi/...
378
381
  ✅ Monitors:
379
- [Auto] my-app (production) - High Frontend Error Rate
382
+ my-app (production) - High Frontend Error Rate
380
383
  https://app.datadoghq.com/monitors/123456789
381
384
  ...
382
385
  ✅ SLOs:
383
- [Auto] my-app (production) - Frontend Availability
386
+ my-app (production) - Frontend Availability
384
387
  https://app.datadoghq.com/slo?slo_id=abcdef123456
385
388
  ```
386
389
 
@@ -392,6 +395,20 @@ A `datadog-observability-{service}.md` file is generated in the current director
392
395
 
393
396
  The CLI is safe to run multiple times. If a resource already exists (matched by name), it will be reused instead of duplicated. Individual resource failures are handled gracefully — one failing resource won't block the rest.
394
397
 
398
+ ### Force Update (`--force`)
399
+
400
+ Use the `--force` flag to update existing resources in-place instead of skipping them. This preserves the same URLs and IDs, so your bookmarks and shared links remain valid.
401
+
402
+ ```bash
403
+ # Update all resources with latest templates (keeps same URLs)
404
+ npx datadog-frontend-toolkit setup -s my-app -e production --force -y
405
+ ```
406
+
407
+ This is useful when:
408
+ - Dashboard templates have been updated with new widgets or sections
409
+ - Monitor thresholds or queries need to be refreshed
410
+ - SLO tags or configurations have changed
411
+
395
412
  ---
396
413
 
397
414
  ## Framework Examples
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datadog-frontend-toolkit",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
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",