nuxt-observe 0.0.2
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.
- package/README.md +92 -0
- package/dist/module.d.mts +7 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +393 -0
- package/dist/runtime/app/assets/css/main.css +1 -0
- package/dist/runtime/app/components/ObserveActivityFeed.d.vue.ts +13 -0
- package/dist/runtime/app/components/ObserveActivityFeed.vue +77 -0
- package/dist/runtime/app/components/ObserveActivityFeed.vue.d.ts +13 -0
- package/dist/runtime/app/components/ObserveActivityTable.d.vue.ts +30 -0
- package/dist/runtime/app/components/ObserveActivityTable.vue +187 -0
- package/dist/runtime/app/components/ObserveActivityTable.vue.d.ts +30 -0
- package/dist/runtime/app/components/ObserveCan.d.vue.ts +27 -0
- package/dist/runtime/app/components/ObserveCan.vue +16 -0
- package/dist/runtime/app/components/ObserveCan.vue.d.ts +27 -0
- package/dist/runtime/app/components/ObserveErrorsTable.d.vue.ts +19 -0
- package/dist/runtime/app/components/ObserveErrorsTable.vue +105 -0
- package/dist/runtime/app/components/ObserveErrorsTable.vue.d.ts +19 -0
- package/dist/runtime/app/components/ObserveHealthHero.d.vue.ts +16 -0
- package/dist/runtime/app/components/ObserveHealthHero.vue +114 -0
- package/dist/runtime/app/components/ObserveHealthHero.vue.d.ts +16 -0
- package/dist/runtime/app/components/ObserveJourneySearch.d.vue.ts +13 -0
- package/dist/runtime/app/components/ObserveJourneySearch.vue +55 -0
- package/dist/runtime/app/components/ObserveJourneySearch.vue.d.ts +13 -0
- package/dist/runtime/app/components/ObserveJourneyTimeline.d.vue.ts +14 -0
- package/dist/runtime/app/components/ObserveJourneyTimeline.vue +119 -0
- package/dist/runtime/app/components/ObserveJourneyTimeline.vue.d.ts +14 -0
- package/dist/runtime/app/components/ObserveLogDetail.d.vue.ts +12 -0
- package/dist/runtime/app/components/ObserveLogDetail.vue +187 -0
- package/dist/runtime/app/components/ObserveLogDetail.vue.d.ts +12 -0
- package/dist/runtime/app/components/ObserveLogLevelBadge.d.vue.ts +10 -0
- package/dist/runtime/app/components/ObserveLogLevelBadge.vue +29 -0
- package/dist/runtime/app/components/ObserveLogLevelBadge.vue.d.ts +10 -0
- package/dist/runtime/app/components/ObserveLogsFilterBar.d.vue.ts +20 -0
- package/dist/runtime/app/components/ObserveLogsFilterBar.vue +134 -0
- package/dist/runtime/app/components/ObserveLogsFilterBar.vue.d.ts +20 -0
- package/dist/runtime/app/components/ObserveLogsTable.d.vue.ts +20 -0
- package/dist/runtime/app/components/ObserveLogsTable.vue +92 -0
- package/dist/runtime/app/components/ObserveLogsTable.vue.d.ts +20 -0
- package/dist/runtime/app/components/ObservePeriodSelector.d.vue.ts +3 -0
- package/dist/runtime/app/components/ObservePeriodSelector.vue +22 -0
- package/dist/runtime/app/components/ObservePeriodSelector.vue.d.ts +3 -0
- package/dist/runtime/app/components/ObserveRegressionAlert.d.vue.ts +12 -0
- package/dist/runtime/app/components/ObserveRegressionAlert.vue +27 -0
- package/dist/runtime/app/components/ObserveRegressionAlert.vue.d.ts +12 -0
- package/dist/runtime/app/components/ObserveServiceSwitcher.d.vue.ts +3 -0
- package/dist/runtime/app/components/ObserveServiceSwitcher.vue +49 -0
- package/dist/runtime/app/components/ObserveServiceSwitcher.vue.d.ts +3 -0
- package/dist/runtime/app/components/ObserveServicesTable.d.vue.ts +15 -0
- package/dist/runtime/app/components/ObserveServicesTable.vue +109 -0
- package/dist/runtime/app/components/ObserveServicesTable.vue.d.ts +15 -0
- package/dist/runtime/app/components/ObserveStatCard.d.vue.ts +14 -0
- package/dist/runtime/app/components/ObserveStatCard.vue +34 -0
- package/dist/runtime/app/components/ObserveStatCard.vue.d.ts +14 -0
- package/dist/runtime/app/components/charts/ObserveErrorRateChart.client.d.vue.ts +15 -0
- package/dist/runtime/app/components/charts/ObserveErrorRateChart.client.vue +170 -0
- package/dist/runtime/app/components/charts/ObserveErrorRateChart.client.vue.d.ts +15 -0
- package/dist/runtime/app/components/charts/ObserveServiceBreakdownChart.client.d.vue.ts +17 -0
- package/dist/runtime/app/components/charts/ObserveServiceBreakdownChart.client.vue +208 -0
- package/dist/runtime/app/components/charts/ObserveServiceBreakdownChart.client.vue.d.ts +17 -0
- package/dist/runtime/app/components/charts/ObserveVersionAdoptionChart.client.d.vue.ts +14 -0
- package/dist/runtime/app/components/charts/ObserveVersionAdoptionChart.client.vue +208 -0
- package/dist/runtime/app/components/charts/ObserveVersionAdoptionChart.client.vue.d.ts +14 -0
- package/dist/runtime/app/components/charts/ObserveVersionCompareChart.client.d.vue.ts +14 -0
- package/dist/runtime/app/components/charts/ObserveVersionCompareChart.client.vue +190 -0
- package/dist/runtime/app/components/charts/ObserveVersionCompareChart.client.vue.d.ts +14 -0
- package/dist/runtime/app/components/charts/ObserveVolumeChart.client.d.vue.ts +16 -0
- package/dist/runtime/app/components/charts/ObserveVolumeChart.client.vue +199 -0
- package/dist/runtime/app/components/charts/ObserveVolumeChart.client.vue.d.ts +16 -0
- package/dist/runtime/app/components/charts/chart-core.d.ts +64 -0
- package/dist/runtime/app/components/charts/chart-core.js +136 -0
- package/dist/runtime/app/components/settings/ObserveApiKeyPanel.d.vue.ts +8 -0
- package/dist/runtime/app/components/settings/ObserveApiKeyPanel.vue +145 -0
- package/dist/runtime/app/components/settings/ObserveApiKeyPanel.vue.d.ts +8 -0
- package/dist/runtime/app/components/settings/ObserveApiKeyRevealModal.d.vue.ts +19 -0
- package/dist/runtime/app/components/settings/ObserveApiKeyRevealModal.vue +106 -0
- package/dist/runtime/app/components/settings/ObserveApiKeyRevealModal.vue.d.ts +19 -0
- package/dist/runtime/app/components/settings/ObserveAssignmentEditor.d.vue.ts +12 -0
- package/dist/runtime/app/components/settings/ObserveAssignmentEditor.vue +67 -0
- package/dist/runtime/app/components/settings/ObserveAssignmentEditor.vue.d.ts +12 -0
- package/dist/runtime/app/components/settings/ObserveGroupFormModal.d.vue.ts +18 -0
- package/dist/runtime/app/components/settings/ObserveGroupFormModal.vue +60 -0
- package/dist/runtime/app/components/settings/ObserveGroupFormModal.vue.d.ts +18 -0
- package/dist/runtime/app/components/settings/ObserveGroupMembershipEditor.d.vue.ts +20 -0
- package/dist/runtime/app/components/settings/ObserveGroupMembershipEditor.vue +21 -0
- package/dist/runtime/app/components/settings/ObserveGroupMembershipEditor.vue.d.ts +20 -0
- package/dist/runtime/app/components/settings/ObserveOriginAllowlistEditor.d.vue.ts +15 -0
- package/dist/runtime/app/components/settings/ObserveOriginAllowlistEditor.vue +63 -0
- package/dist/runtime/app/components/settings/ObserveOriginAllowlistEditor.vue.d.ts +15 -0
- package/dist/runtime/app/components/settings/ObserveServiceEditForm.d.vue.ts +38 -0
- package/dist/runtime/app/components/settings/ObserveServiceEditForm.vue +216 -0
- package/dist/runtime/app/components/settings/ObserveServiceEditForm.vue.d.ts +38 -0
- package/dist/runtime/app/components/settings/ObserveServiceFormModal.d.vue.ts +37 -0
- package/dist/runtime/app/components/settings/ObserveServiceFormModal.vue +192 -0
- package/dist/runtime/app/components/settings/ObserveServiceFormModal.vue.d.ts +37 -0
- package/dist/runtime/app/components/settings/ObserveServiceTypeBadge.d.vue.ts +11 -0
- package/dist/runtime/app/components/settings/ObserveServiceTypeBadge.vue +18 -0
- package/dist/runtime/app/components/settings/ObserveServiceTypeBadge.vue.d.ts +11 -0
- package/dist/runtime/app/components/settings/ObserveSettingsServicesTable.d.vue.ts +19 -0
- package/dist/runtime/app/components/settings/ObserveSettingsServicesTable.vue +132 -0
- package/dist/runtime/app/components/settings/ObserveSettingsServicesTable.vue.d.ts +19 -0
- package/dist/runtime/app/components/settings/ObserveUserFormModal.d.vue.ts +27 -0
- package/dist/runtime/app/components/settings/ObserveUserFormModal.vue +108 -0
- package/dist/runtime/app/components/settings/ObserveUserFormModal.vue.d.ts +27 -0
- package/dist/runtime/app/components/settings/ObserveVersionTrackingField.d.vue.ts +17 -0
- package/dist/runtime/app/components/settings/ObserveVersionTrackingField.vue +20 -0
- package/dist/runtime/app/components/settings/ObserveVersionTrackingField.vue.d.ts +17 -0
- package/dist/runtime/app/composables/useObserveAbility.d.ts +15 -0
- package/dist/runtime/app/composables/useObserveAbility.js +20 -0
- package/dist/runtime/app/composables/useObserveActivity.d.ts +22 -0
- package/dist/runtime/app/composables/useObserveActivity.js +44 -0
- package/dist/runtime/app/composables/useObserveApiKeys.d.ts +15 -0
- package/dist/runtime/app/composables/useObserveApiKeys.js +19 -0
- package/dist/runtime/app/composables/useObserveAssignments.d.ts +19 -0
- package/dist/runtime/app/composables/useObserveAssignments.js +16 -0
- package/dist/runtime/app/composables/useObserveErrors.d.ts +33 -0
- package/dist/runtime/app/composables/useObserveErrors.js +85 -0
- package/dist/runtime/app/composables/useObserveGroups.d.ts +27 -0
- package/dist/runtime/app/composables/useObserveGroups.js +33 -0
- package/dist/runtime/app/composables/useObserveJourney.d.ts +19 -0
- package/dist/runtime/app/composables/useObserveJourney.js +19 -0
- package/dist/runtime/app/composables/useObserveLogFacets.d.ts +11 -0
- package/dist/runtime/app/composables/useObserveLogFacets.js +21 -0
- package/dist/runtime/app/composables/useObserveLogs.d.ts +28 -0
- package/dist/runtime/app/composables/useObserveLogs.js +100 -0
- package/dist/runtime/app/composables/useObserveMigrations.d.ts +17 -0
- package/dist/runtime/app/composables/useObserveMigrations.js +49 -0
- package/dist/runtime/app/composables/useObserveOverview.d.ts +14 -0
- package/dist/runtime/app/composables/useObserveOverview.js +23 -0
- package/dist/runtime/app/composables/useObservePeriod.d.ts +11 -0
- package/dist/runtime/app/composables/useObservePeriod.js +18 -0
- package/dist/runtime/app/composables/useObserveRollout.d.ts +20 -0
- package/dist/runtime/app/composables/useObserveRollout.js +55 -0
- package/dist/runtime/app/composables/useObserveScope.d.ts +13 -0
- package/dist/runtime/app/composables/useObserveScope.js +17 -0
- package/dist/runtime/app/composables/useObserveServices.d.ts +26 -0
- package/dist/runtime/app/composables/useObserveServices.js +33 -0
- package/dist/runtime/app/composables/useObserveStats.d.ts +14 -0
- package/dist/runtime/app/composables/useObserveStats.js +23 -0
- package/dist/runtime/app/composables/useObserveUsers.d.ts +29 -0
- package/dist/runtime/app/composables/useObserveUsers.js +33 -0
- package/dist/runtime/app/layouts/observe.d.vue.ts +13 -0
- package/dist/runtime/app/layouts/observe.vue +138 -0
- package/dist/runtime/app/layouts/observe.vue.d.ts +13 -0
- package/dist/runtime/app/middleware/observe-auth.global.d.ts +9 -0
- package/dist/runtime/app/middleware/observe-auth.global.js +8 -0
- package/dist/runtime/app/pages/activity.d.vue.ts +3 -0
- package/dist/runtime/app/pages/activity.vue +54 -0
- package/dist/runtime/app/pages/activity.vue.d.ts +3 -0
- package/dist/runtime/app/pages/error-detail.d.vue.ts +3 -0
- package/dist/runtime/app/pages/error-detail.vue +190 -0
- package/dist/runtime/app/pages/error-detail.vue.d.ts +3 -0
- package/dist/runtime/app/pages/errors.d.vue.ts +3 -0
- package/dist/runtime/app/pages/errors.vue +47 -0
- package/dist/runtime/app/pages/errors.vue.d.ts +3 -0
- package/dist/runtime/app/pages/journey.d.vue.ts +3 -0
- package/dist/runtime/app/pages/journey.vue +96 -0
- package/dist/runtime/app/pages/journey.vue.d.ts +3 -0
- package/dist/runtime/app/pages/log-detail.d.vue.ts +3 -0
- package/dist/runtime/app/pages/log-detail.vue +35 -0
- package/dist/runtime/app/pages/log-detail.vue.d.ts +3 -0
- package/dist/runtime/app/pages/login.d.vue.ts +3 -0
- package/dist/runtime/app/pages/login.vue +69 -0
- package/dist/runtime/app/pages/login.vue.d.ts +3 -0
- package/dist/runtime/app/pages/logs.d.vue.ts +3 -0
- package/dist/runtime/app/pages/logs.vue +36 -0
- package/dist/runtime/app/pages/logs.vue.d.ts +3 -0
- package/dist/runtime/app/pages/metrics.d.vue.ts +3 -0
- package/dist/runtime/app/pages/metrics.vue +68 -0
- package/dist/runtime/app/pages/metrics.vue.d.ts +3 -0
- package/dist/runtime/app/pages/overview.d.vue.ts +3 -0
- package/dist/runtime/app/pages/overview.vue +65 -0
- package/dist/runtime/app/pages/overview.vue.d.ts +3 -0
- package/dist/runtime/app/pages/rollout.d.vue.ts +3 -0
- package/dist/runtime/app/pages/rollout.vue +188 -0
- package/dist/runtime/app/pages/rollout.vue.d.ts +3 -0
- package/dist/runtime/app/pages/settings/group-detail.d.vue.ts +3 -0
- package/dist/runtime/app/pages/settings/group-detail.vue +149 -0
- package/dist/runtime/app/pages/settings/group-detail.vue.d.ts +3 -0
- package/dist/runtime/app/pages/settings/groups.d.vue.ts +3 -0
- package/dist/runtime/app/pages/settings/groups.vue +107 -0
- package/dist/runtime/app/pages/settings/groups.vue.d.ts +3 -0
- package/dist/runtime/app/pages/settings/index.d.vue.ts +3 -0
- package/dist/runtime/app/pages/settings/index.vue +47 -0
- package/dist/runtime/app/pages/settings/index.vue.d.ts +3 -0
- package/dist/runtime/app/pages/settings/migrations.d.vue.ts +3 -0
- package/dist/runtime/app/pages/settings/migrations.vue +275 -0
- package/dist/runtime/app/pages/settings/migrations.vue.d.ts +3 -0
- package/dist/runtime/app/pages/settings/service-detail.d.vue.ts +3 -0
- package/dist/runtime/app/pages/settings/service-detail.vue +133 -0
- package/dist/runtime/app/pages/settings/service-detail.vue.d.ts +3 -0
- package/dist/runtime/app/pages/settings/services.d.vue.ts +3 -0
- package/dist/runtime/app/pages/settings/services.vue +66 -0
- package/dist/runtime/app/pages/settings/services.vue.d.ts +3 -0
- package/dist/runtime/app/pages/settings/users/[id].d.vue.ts +3 -0
- package/dist/runtime/app/pages/settings/users/[id].vue +243 -0
- package/dist/runtime/app/pages/settings/users/[id].vue.d.ts +3 -0
- package/dist/runtime/app/pages/settings/users/index.d.vue.ts +3 -0
- package/dist/runtime/app/pages/settings/users/index.vue +129 -0
- package/dist/runtime/app/pages/settings/users/index.vue.d.ts +3 -0
- package/dist/runtime/options.d.ts +1 -0
- package/dist/runtime/options.js +1 -0
- package/dist/runtime/server/api/observe/activity.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/activity.get.js +30 -0
- package/dist/runtime/server/api/observe/auth/login.post.d.ts +4 -0
- package/dist/runtime/server/api/observe/auth/login.post.js +13 -0
- package/dist/runtime/server/api/observe/auth/logout.post.d.ts +4 -0
- package/dist/runtime/server/api/observe/auth/logout.post.js +6 -0
- package/dist/runtime/server/api/observe/auth/me.get.d.ts +2 -0
- package/dist/runtime/server/api/observe/auth/me.get.js +3 -0
- package/dist/runtime/server/api/observe/errors/[fingerprint].get.d.ts +3 -0
- package/dist/runtime/server/api/observe/errors/[fingerprint].get.js +56 -0
- package/dist/runtime/server/api/observe/errors/index.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/errors/index.get.js +41 -0
- package/dist/runtime/server/api/observe/facets.get.d.ts +8 -0
- package/dist/runtime/server/api/observe/facets.get.js +12 -0
- package/dist/runtime/server/api/observe/groups/[id]/assignments.put.d.ts +3 -0
- package/dist/runtime/server/api/observe/groups/[id]/assignments.put.js +12 -0
- package/dist/runtime/server/api/observe/groups/[id]/services.put.d.ts +5 -0
- package/dist/runtime/server/api/observe/groups/[id]/services.put.js +13 -0
- package/dist/runtime/server/api/observe/groups/[id].delete.d.ts +5 -0
- package/dist/runtime/server/api/observe/groups/[id].delete.js +11 -0
- package/dist/runtime/server/api/observe/groups/[id].get.d.ts +6 -0
- package/dist/runtime/server/api/observe/groups/[id].get.js +14 -0
- package/dist/runtime/server/api/observe/groups/[id].patch.d.ts +3 -0
- package/dist/runtime/server/api/observe/groups/[id].patch.js +12 -0
- package/dist/runtime/server/api/observe/groups/index.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/groups/index.get.js +7 -0
- package/dist/runtime/server/api/observe/groups/index.post.d.ts +3 -0
- package/dist/runtime/server/api/observe/groups/index.post.js +11 -0
- package/dist/runtime/server/api/observe/health.get.d.ts +6 -0
- package/dist/runtime/server/api/observe/health.get.js +10 -0
- package/dist/runtime/server/api/observe/ingest/frogger.d.ts +5 -0
- package/dist/runtime/server/api/observe/ingest/frogger.js +42 -0
- package/dist/runtime/server/api/observe/ingest.d.ts +5 -0
- package/dist/runtime/server/api/observe/ingest.js +38 -0
- package/dist/runtime/server/api/observe/journey.get.d.ts +9 -0
- package/dist/runtime/server/api/observe/journey.get.js +31 -0
- package/dist/runtime/server/api/observe/logs/[id].get.d.ts +3 -0
- package/dist/runtime/server/api/observe/logs/[id].get.js +19 -0
- package/dist/runtime/server/api/observe/logs.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/logs.get.js +54 -0
- package/dist/runtime/server/api/observe/migrations/index.get.d.ts +9 -0
- package/dist/runtime/server/api/observe/migrations/index.get.js +14 -0
- package/dist/runtime/server/api/observe/migrations/run.post.d.ts +13 -0
- package/dist/runtime/server/api/observe/migrations/run.post.js +35 -0
- package/dist/runtime/server/api/observe/overview.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/overview.get.js +19 -0
- package/dist/runtime/server/api/observe/rollout/compare.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/rollout/compare.get.js +24 -0
- package/dist/runtime/server/api/observe/rollout/regressions.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/rollout/regressions.get.js +31 -0
- package/dist/runtime/server/api/observe/rollout/versions.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/rollout/versions.get.js +20 -0
- package/dist/runtime/server/api/observe/services/[id]/assignments.put.d.ts +7 -0
- package/dist/runtime/server/api/observe/services/[id]/assignments.put.js +12 -0
- package/dist/runtime/server/api/observe/services/[id]/keys/[keyId]/rotate.post.d.ts +4 -0
- package/dist/runtime/server/api/observe/services/[id]/keys/[keyId]/rotate.post.js +14 -0
- package/dist/runtime/server/api/observe/services/[id]/keys/[keyId].delete.d.ts +4 -0
- package/dist/runtime/server/api/observe/services/[id]/keys/[keyId].delete.js +14 -0
- package/dist/runtime/server/api/observe/services/[id]/keys/index.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/services/[id]/keys/index.get.js +10 -0
- package/dist/runtime/server/api/observe/services/[id]/keys/index.post.d.ts +3 -0
- package/dist/runtime/server/api/observe/services/[id]/keys/index.post.js +11 -0
- package/dist/runtime/server/api/observe/services/[id]/restore.post.d.ts +4 -0
- package/dist/runtime/server/api/observe/services/[id]/restore.post.js +11 -0
- package/dist/runtime/server/api/observe/services/[id].delete.d.ts +11 -0
- package/dist/runtime/server/api/observe/services/[id].delete.js +11 -0
- package/dist/runtime/server/api/observe/services/[id].get.d.ts +3 -0
- package/dist/runtime/server/api/observe/services/[id].get.js +12 -0
- package/dist/runtime/server/api/observe/services/[id].patch.d.ts +3 -0
- package/dist/runtime/server/api/observe/services/[id].patch.js +13 -0
- package/dist/runtime/server/api/observe/services/index.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/services/index.get.js +7 -0
- package/dist/runtime/server/api/observe/services/index.post.d.ts +3 -0
- package/dist/runtime/server/api/observe/services/index.post.js +16 -0
- package/dist/runtime/server/api/observe/stats.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/stats.get.js +28 -0
- package/dist/runtime/server/api/observe/users/[id]/assignments.put.d.ts +3 -0
- package/dist/runtime/server/api/observe/users/[id]/assignments.put.js +14 -0
- package/dist/runtime/server/api/observe/users/[id].delete.d.ts +4 -0
- package/dist/runtime/server/api/observe/users/[id].delete.js +15 -0
- package/dist/runtime/server/api/observe/users/[id].get.d.ts +3 -0
- package/dist/runtime/server/api/observe/users/[id].get.js +11 -0
- package/dist/runtime/server/api/observe/users/[id].patch.d.ts +3 -0
- package/dist/runtime/server/api/observe/users/[id].patch.js +25 -0
- package/dist/runtime/server/api/observe/users/index.get.d.ts +8 -0
- package/dist/runtime/server/api/observe/users/index.get.js +7 -0
- package/dist/runtime/server/api/observe/users/index.post.d.ts +3 -0
- package/dist/runtime/server/api/observe/users/index.post.js +29 -0
- package/dist/runtime/server/auth/authorization.d.ts +7 -0
- package/dist/runtime/server/auth/authorization.js +5 -0
- package/dist/runtime/server/auth/provider.d.ts +17 -0
- package/dist/runtime/server/auth/provider.js +44 -0
- package/dist/runtime/server/auth/providers/config-provider.d.ts +18 -0
- package/dist/runtime/server/auth/providers/config-provider.js +54 -0
- package/dist/runtime/server/auth/providers/db-provider.d.ts +16 -0
- package/dist/runtime/server/auth/providers/db-provider.js +42 -0
- package/dist/runtime/server/auth/providers/jwt-provider.d.ts +24 -0
- package/dist/runtime/server/auth/providers/jwt-provider.js +72 -0
- package/dist/runtime/server/migrations/0001-services-kind.d.ts +8 -0
- package/dist/runtime/server/migrations/0001-services-kind.js +14 -0
- package/dist/runtime/server/migrations/0002-services-type.d.ts +7 -0
- package/dist/runtime/server/migrations/0002-services-type.js +14 -0
- package/dist/runtime/server/migrations/0003-services-deleted-at.d.ts +6 -0
- package/dist/runtime/server/migrations/0003-services-deleted-at.js +14 -0
- package/dist/runtime/server/migrations/0004-logs-error-fingerprint.d.ts +11 -0
- package/dist/runtime/server/migrations/0004-logs-error-fingerprint.js +15 -0
- package/dist/runtime/server/migrations/0005-users-columns.d.ts +9 -0
- package/dist/runtime/server/migrations/0005-users-columns.js +25 -0
- package/dist/runtime/server/migrations/index.d.ts +13 -0
- package/dist/runtime/server/migrations/index.js +13 -0
- package/dist/runtime/server/migrations/types.d.ts +15 -0
- package/dist/runtime/server/migrations/types.js +0 -0
- package/dist/runtime/server/plugins/observe-migrate.server.d.ts +2 -0
- package/dist/runtime/server/plugins/observe-migrate.server.js +18 -0
- package/dist/runtime/server/tasks/backfill-fingerprints.d.ts +11 -0
- package/dist/runtime/server/tasks/backfill-fingerprints.js +41 -0
- package/dist/runtime/server/tasks/purge.d.ts +5 -0
- package/dist/runtime/server/tasks/purge.js +12 -0
- package/dist/runtime/server/tsconfig.json +3 -0
- package/dist/runtime/server/utils/activity-query.d.ts +28 -0
- package/dist/runtime/server/utils/activity-query.js +70 -0
- package/dist/runtime/server/utils/api-keys.d.ts +48 -0
- package/dist/runtime/server/utils/api-keys.js +67 -0
- package/dist/runtime/server/utils/authz.d.ts +50 -0
- package/dist/runtime/server/utils/authz.js +60 -0
- package/dist/runtime/server/utils/db/users.d.ts +91 -0
- package/dist/runtime/server/utils/db/users.js +128 -0
- package/dist/runtime/server/utils/db.d.ts +10 -0
- package/dist/runtime/server/utils/db.js +5 -0
- package/dist/runtime/server/utils/frogger-adapter.d.ts +40 -0
- package/dist/runtime/server/utils/frogger-adapter.js +97 -0
- package/dist/runtime/server/utils/groups.d.ts +35 -0
- package/dist/runtime/server/utils/groups.js +59 -0
- package/dist/runtime/server/utils/ingest-cors.d.ts +23 -0
- package/dist/runtime/server/utils/ingest-cors.js +27 -0
- package/dist/runtime/server/utils/journey.d.ts +20 -0
- package/dist/runtime/server/utils/journey.js +44 -0
- package/dist/runtime/server/utils/logs.d.ts +50 -0
- package/dist/runtime/server/utils/logs.js +154 -0
- package/dist/runtime/server/utils/loop-guard.d.ts +11 -0
- package/dist/runtime/server/utils/loop-guard.js +11 -0
- package/dist/runtime/server/utils/migrate.d.ts +21 -0
- package/dist/runtime/server/utils/migrate.js +144 -0
- package/dist/runtime/server/utils/migration-runner.d.ts +42 -0
- package/dist/runtime/server/utils/migration-runner.js +129 -0
- package/dist/runtime/server/utils/observe-errors.d.ts +58 -0
- package/dist/runtime/server/utils/observe-errors.js +206 -0
- package/dist/runtime/server/utils/overview.d.ts +20 -0
- package/dist/runtime/server/utils/overview.js +119 -0
- package/dist/runtime/server/utils/provisioning.d.ts +62 -0
- package/dist/runtime/server/utils/provisioning.js +299 -0
- package/dist/runtime/server/utils/rate-limit.d.ts +11 -0
- package/dist/runtime/server/utils/rate-limit.js +22 -0
- package/dist/runtime/server/utils/require-observe-session.d.ts +15 -0
- package/dist/runtime/server/utils/require-observe-session.js +25 -0
- package/dist/runtime/server/utils/rollout.d.ts +19 -0
- package/dist/runtime/server/utils/rollout.js +56 -0
- package/dist/runtime/server/utils/scope.d.ts +14 -0
- package/dist/runtime/server/utils/scope.js +28 -0
- package/dist/runtime/server/utils/seed.d.ts +18 -0
- package/dist/runtime/server/utils/seed.js +70 -0
- package/dist/runtime/server/utils/services.d.ts +91 -0
- package/dist/runtime/server/utils/services.js +142 -0
- package/dist/runtime/server/utils/stats-query.d.ts +40 -0
- package/dist/runtime/server/utils/stats-query.js +104 -0
- package/dist/runtime/shared/auth/roles.d.ts +34 -0
- package/dist/runtime/shared/auth/roles.js +6 -0
- package/dist/runtime/shared/auth/schema.d.ts +85 -0
- package/dist/runtime/shared/auth/schema.js +41 -0
- package/dist/runtime/shared/auth/types.d.ts +68 -0
- package/dist/runtime/shared/auth/types.js +0 -0
- package/dist/runtime/shared/rbac/capabilities.d.ts +46 -0
- package/dist/runtime/shared/rbac/capabilities.js +48 -0
- package/dist/runtime/shared/schema/activity.d.ts +77 -0
- package/dist/runtime/shared/schema/activity.js +22 -0
- package/dist/runtime/shared/schema/adapters/frogger.d.ts +52 -0
- package/dist/runtime/shared/schema/adapters/frogger.js +17 -0
- package/dist/runtime/shared/schema/batch.d.ts +33 -0
- package/dist/runtime/shared/schema/batch.js +9 -0
- package/dist/runtime/shared/schema/error-fingerprint.d.ts +53 -0
- package/dist/runtime/shared/schema/error-fingerprint.js +47 -0
- package/dist/runtime/shared/schema/errors-query.d.ts +136 -0
- package/dist/runtime/shared/schema/errors-query.js +47 -0
- package/dist/runtime/shared/schema/event.d.ts +48 -0
- package/dist/runtime/shared/schema/event.js +41 -0
- package/dist/runtime/shared/schema/frogger-map.d.ts +62 -0
- package/dist/runtime/shared/schema/frogger-map.js +30 -0
- package/dist/runtime/shared/schema/index.d.ts +17 -0
- package/dist/runtime/shared/schema/index.js +17 -0
- package/dist/runtime/shared/schema/journey.d.ts +99 -0
- package/dist/runtime/shared/schema/journey.js +96 -0
- package/dist/runtime/shared/schema/levels.d.ts +37 -0
- package/dist/runtime/shared/schema/levels.js +72 -0
- package/dist/runtime/shared/schema/log-row.d.ts +31 -0
- package/dist/runtime/shared/schema/log-row.js +0 -0
- package/dist/runtime/shared/schema/logs-query.d.ts +91 -0
- package/dist/runtime/shared/schema/logs-query.js +72 -0
- package/dist/runtime/shared/schema/migrations.d.ts +34 -0
- package/dist/runtime/shared/schema/migrations.js +0 -0
- package/dist/runtime/shared/schema/overview.d.ts +78 -0
- package/dist/runtime/shared/schema/overview.js +9 -0
- package/dist/runtime/shared/schema/provisioning.d.ts +230 -0
- package/dist/runtime/shared/schema/provisioning.js +52 -0
- package/dist/runtime/shared/schema/registry.d.ts +115 -0
- package/dist/runtime/shared/schema/registry.js +27 -0
- package/dist/runtime/shared/schema/rollout.d.ts +103 -0
- package/dist/runtime/shared/schema/rollout.js +66 -0
- package/dist/runtime/shared/schema/stats.d.ts +64 -0
- package/dist/runtime/shared/schema/stats.js +15 -0
- package/dist/runtime/shared/schema/tiers.d.ts +5 -0
- package/dist/runtime/shared/schema/tiers.js +9 -0
- package/dist/runtime/shared/types/module-options.d.ts +119 -0
- package/dist/runtime/shared/types/module-options.js +13 -0
- package/dist/runtime/shared/types/storage.d.ts +31 -0
- package/dist/runtime/shared/types/storage.js +0 -0
- package/dist/runtime/shared/utils/format-relative.d.ts +7 -0
- package/dist/runtime/shared/utils/format-relative.js +11 -0
- package/dist/runtime/shared/utils/frogger-snippet.d.ts +19 -0
- package/dist/runtime/shared/utils/frogger-snippet.js +33 -0
- package/dist/runtime/shared/utils/observe-config.d.ts +9 -0
- package/dist/runtime/shared/utils/observe-config.js +17 -0
- package/dist/runtime/shared/utils/period.d.ts +13 -0
- package/dist/runtime/shared/utils/period.js +15 -0
- package/dist/runtime/shared/utils/slug.d.ts +1 -0
- package/dist/runtime/shared/utils/slug.js +5 -0
- package/dist/runtime/shared/utils/uuid.d.ts +187 -0
- package/dist/runtime/shared/utils/uuid.js +345 -0
- package/dist/runtime/types/nuxt-auth-utils-imports.d.ts +25 -0
- package/dist/runtime/types/observe-app-imports.d.ts +20 -0
- package/dist/runtime/types/session.d.ts +17 -0
- package/dist/schema.d.mts +1318 -0
- package/dist/schema.mjs +629 -0
- package/dist/types.d.mts +3 -0
- package/package.json +93 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { useRoute } from "#imports";
|
|
4
|
+
import { useObserveJourney } from "../composables/useObserveJourney";
|
|
5
|
+
const route = useRoute();
|
|
6
|
+
const mode = computed(() => {
|
|
7
|
+
const m = route.query.mode;
|
|
8
|
+
return m === "session" || m === "user" ? m : "trace";
|
|
9
|
+
});
|
|
10
|
+
const key = computed(() => typeof route.query.key === "string" ? route.query.key : "");
|
|
11
|
+
const hasKey = computed(() => key.value.length > 0);
|
|
12
|
+
const { data, pending, error } = useObserveJourney(mode, key);
|
|
13
|
+
function durationLabel(ms) {
|
|
14
|
+
if (ms < 1e3) return `${ms}ms`;
|
|
15
|
+
if (ms < 6e4) return `${(ms / 1e3).toFixed(2)}s`;
|
|
16
|
+
return `${(ms / 6e4).toFixed(1)}min`;
|
|
17
|
+
}
|
|
18
|
+
const alerts = computed(() => {
|
|
19
|
+
if (!data.value) return [];
|
|
20
|
+
const out = [];
|
|
21
|
+
const has = (r) => data.value.reasons.includes(r);
|
|
22
|
+
if (has("empty")) {
|
|
23
|
+
out.push(mode.value === "trace" ? { color: "neutral", title: "No events", description: "No events found for this trace. If the id is fresh, ingestion may not have caught up yet." } : { color: "neutral", title: "No events", description: `No events found for this ${mode.value}. Session and user correlation depends on your app sending ctx.session / ctx.user; events emitted without it will not appear here.` });
|
|
24
|
+
}
|
|
25
|
+
if (has("missing-correlation") && mode.value === "trace") {
|
|
26
|
+
out.push({ color: "warning", title: "Incomplete waterfall", description: "Some events in this trace were emitted without W3C trace context, so the waterfall is incomplete." });
|
|
27
|
+
}
|
|
28
|
+
if (has("dangling-parent")) {
|
|
29
|
+
out.push({ color: "warning", title: "Missing parent span", description: "A parent span is missing: an upstream service is not reporting, or it is outside your assigned services." });
|
|
30
|
+
}
|
|
31
|
+
if (has("truncated")) {
|
|
32
|
+
out.push({ color: "warning", title: "Results truncated", description: `Showing the first ${data.value.events.length} events; narrow the time range to see more.` });
|
|
33
|
+
}
|
|
34
|
+
return out;
|
|
35
|
+
});
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<template>
|
|
39
|
+
<div class="space-y-4">
|
|
40
|
+
<ObserveJourneySearch
|
|
41
|
+
:mode="mode"
|
|
42
|
+
:key-value="key"
|
|
43
|
+
/>
|
|
44
|
+
|
|
45
|
+
<UAlert
|
|
46
|
+
v-if="!hasKey"
|
|
47
|
+
color="neutral"
|
|
48
|
+
variant="subtle"
|
|
49
|
+
icon="i-lucide-waypoints"
|
|
50
|
+
title="View a journey"
|
|
51
|
+
description="Enter a trace id, session, or user above to see its cross-service timeline."
|
|
52
|
+
/>
|
|
53
|
+
|
|
54
|
+
<template v-else>
|
|
55
|
+
<UAlert
|
|
56
|
+
v-if="error"
|
|
57
|
+
color="error"
|
|
58
|
+
variant="subtle"
|
|
59
|
+
title="Failed to load journey"
|
|
60
|
+
:description="error.message"
|
|
61
|
+
/>
|
|
62
|
+
|
|
63
|
+
<template v-else-if="data">
|
|
64
|
+
<div class="flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-muted">
|
|
65
|
+
<span>{{ data.stats.count }} events</span>
|
|
66
|
+
<span v-if="data.stats.count">{{ durationLabel(data.stats.durationMs) }}</span>
|
|
67
|
+
<span
|
|
68
|
+
v-if="data.stats.services.length"
|
|
69
|
+
class="font-mono"
|
|
70
|
+
>{{ data.stats.services.join(" \xB7 ") }}</span>
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
<UAlert
|
|
74
|
+
v-for="(a, i) in alerts"
|
|
75
|
+
:key="i"
|
|
76
|
+
:color="a.color"
|
|
77
|
+
variant="subtle"
|
|
78
|
+
:title="a.title"
|
|
79
|
+
:description="a.description"
|
|
80
|
+
/>
|
|
81
|
+
|
|
82
|
+
<ObserveJourneyTimeline
|
|
83
|
+
:events="data.events"
|
|
84
|
+
:mode="data.mode"
|
|
85
|
+
/>
|
|
86
|
+
</template>
|
|
87
|
+
|
|
88
|
+
<div
|
|
89
|
+
v-else-if="pending"
|
|
90
|
+
class="text-sm text-muted"
|
|
91
|
+
>
|
|
92
|
+
Loading journey…
|
|
93
|
+
</div>
|
|
94
|
+
</template>
|
|
95
|
+
</div>
|
|
96
|
+
</template>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useRoute, useRuntimeConfig, useFetch } from "#imports";
|
|
3
|
+
const route = useRoute();
|
|
4
|
+
const { prefix } = useRuntimeConfig().public.observe;
|
|
5
|
+
const id = route.params.id;
|
|
6
|
+
const { data: log, error } = useFetch(
|
|
7
|
+
`/api/observe/logs/${id}`,
|
|
8
|
+
{ key: `observe:log:${id}` }
|
|
9
|
+
);
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<div class="space-y-4">
|
|
14
|
+
<UButton
|
|
15
|
+
variant="ghost"
|
|
16
|
+
color="neutral"
|
|
17
|
+
icon="i-lucide-arrow-left"
|
|
18
|
+
label="Logs"
|
|
19
|
+
:to="`${prefix}/logs`"
|
|
20
|
+
/>
|
|
21
|
+
|
|
22
|
+
<UAlert
|
|
23
|
+
v-if="error"
|
|
24
|
+
color="error"
|
|
25
|
+
variant="subtle"
|
|
26
|
+
title="Failed to load log"
|
|
27
|
+
:description="error.message"
|
|
28
|
+
/>
|
|
29
|
+
|
|
30
|
+
<ObserveLogDetail
|
|
31
|
+
v-else-if="log"
|
|
32
|
+
:log="log"
|
|
33
|
+
/>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref } from "vue";
|
|
3
|
+
import { useRuntimeConfig, useUserSession, navigateTo } from "#imports";
|
|
4
|
+
const prefix = useRuntimeConfig().public.observe.prefix;
|
|
5
|
+
const { fetch: fetchSession } = useUserSession();
|
|
6
|
+
const name = ref("");
|
|
7
|
+
const password = ref("");
|
|
8
|
+
const error = ref("");
|
|
9
|
+
const pending = ref(false);
|
|
10
|
+
async function onSubmit() {
|
|
11
|
+
error.value = "";
|
|
12
|
+
pending.value = true;
|
|
13
|
+
try {
|
|
14
|
+
await $fetch("/api/observe/auth/login", {
|
|
15
|
+
method: "POST",
|
|
16
|
+
body: { name: name.value, password: password.value }
|
|
17
|
+
});
|
|
18
|
+
await fetchSession();
|
|
19
|
+
await navigateTo(prefix);
|
|
20
|
+
} catch {
|
|
21
|
+
error.value = "Invalid credentials";
|
|
22
|
+
} finally {
|
|
23
|
+
pending.value = false;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<template>
|
|
29
|
+
<UContainer class="py-10">
|
|
30
|
+
<UCard class="max-w-sm mx-auto">
|
|
31
|
+
<template #header>
|
|
32
|
+
<h1 class="text-xl font-semibold">
|
|
33
|
+
Sign in
|
|
34
|
+
</h1>
|
|
35
|
+
</template>
|
|
36
|
+
<form
|
|
37
|
+
class="space-y-3"
|
|
38
|
+
@submit.prevent="onSubmit"
|
|
39
|
+
>
|
|
40
|
+
<UInput
|
|
41
|
+
v-model="name"
|
|
42
|
+
placeholder="Name"
|
|
43
|
+
autocomplete="username"
|
|
44
|
+
class="w-full"
|
|
45
|
+
/>
|
|
46
|
+
<UInput
|
|
47
|
+
v-model="password"
|
|
48
|
+
type="password"
|
|
49
|
+
placeholder="Password"
|
|
50
|
+
autocomplete="current-password"
|
|
51
|
+
class="w-full"
|
|
52
|
+
/>
|
|
53
|
+
<p
|
|
54
|
+
v-if="error"
|
|
55
|
+
class="text-sm text-error"
|
|
56
|
+
>
|
|
57
|
+
{{ error }}
|
|
58
|
+
</p>
|
|
59
|
+
<UButton
|
|
60
|
+
type="submit"
|
|
61
|
+
block
|
|
62
|
+
:loading="pending"
|
|
63
|
+
>
|
|
64
|
+
Sign in
|
|
65
|
+
</UButton>
|
|
66
|
+
</form>
|
|
67
|
+
</UCard>
|
|
68
|
+
</UContainer>
|
|
69
|
+
</template>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useObserveLogs } from "../composables/useObserveLogs";
|
|
3
|
+
import { useObserveLogFacets } from "../composables/useObserveLogFacets";
|
|
4
|
+
const { data, pending, error, filters, setFilters, clearFilters, page, limit } = useObserveLogs();
|
|
5
|
+
const { versions } = useObserveLogFacets();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<div class="space-y-4">
|
|
10
|
+
<UAlert
|
|
11
|
+
v-if="error"
|
|
12
|
+
color="error"
|
|
13
|
+
variant="subtle"
|
|
14
|
+
title="Failed to load logs"
|
|
15
|
+
:description="error.message"
|
|
16
|
+
/>
|
|
17
|
+
|
|
18
|
+
<template v-else>
|
|
19
|
+
<ObserveLogsFilterBar
|
|
20
|
+
:filters="filters"
|
|
21
|
+
:versions="versions"
|
|
22
|
+
@update="setFilters"
|
|
23
|
+
@clear="clearFilters"
|
|
24
|
+
/>
|
|
25
|
+
|
|
26
|
+
<ObserveLogsTable
|
|
27
|
+
:rows="data?.rows ?? []"
|
|
28
|
+
:total="data?.total ?? 0"
|
|
29
|
+
:page="page"
|
|
30
|
+
:limit="limit"
|
|
31
|
+
:pending="pending"
|
|
32
|
+
@update:page="page = $event"
|
|
33
|
+
/>
|
|
34
|
+
</template>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { useObserveStats } from "../composables/useObserveStats";
|
|
4
|
+
const { data, pending, error } = useObserveStats();
|
|
5
|
+
const compact = new Intl.NumberFormat("en", { notation: "compact", maximumFractionDigits: 1 });
|
|
6
|
+
const tiles = computed(() => {
|
|
7
|
+
const totals = data.value?.totals;
|
|
8
|
+
const label = data.value?.period.label;
|
|
9
|
+
if (!totals) return [];
|
|
10
|
+
return [
|
|
11
|
+
{ label: "Events", value: compact.format(totals.count), icon: "i-lucide-layers", hint: label },
|
|
12
|
+
{ label: "Errors", value: compact.format(totals.errorCount), icon: "i-lucide-circle-x", hint: label },
|
|
13
|
+
{ label: "Warnings", value: compact.format(totals.warnCount), icon: "i-lucide-triangle-alert", hint: label },
|
|
14
|
+
{ label: "Error rate", value: `${totals.errorRatePct.toFixed(1)}%`, icon: "i-lucide-activity", hint: label }
|
|
15
|
+
];
|
|
16
|
+
});
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<div class="space-y-6">
|
|
21
|
+
<UAlert
|
|
22
|
+
v-if="error"
|
|
23
|
+
color="error"
|
|
24
|
+
variant="subtle"
|
|
25
|
+
title="Failed to load metrics"
|
|
26
|
+
:description="error.message"
|
|
27
|
+
/>
|
|
28
|
+
|
|
29
|
+
<template v-else>
|
|
30
|
+
<div class="grid grid-cols-2 lg:grid-cols-4 gap-4">
|
|
31
|
+
<template v-if="tiles.length">
|
|
32
|
+
<ObserveStatCard
|
|
33
|
+
v-for="tile in tiles"
|
|
34
|
+
:key="tile.label"
|
|
35
|
+
v-bind="tile"
|
|
36
|
+
/>
|
|
37
|
+
</template>
|
|
38
|
+
<template v-else>
|
|
39
|
+
<USkeleton
|
|
40
|
+
v-for="i in 4"
|
|
41
|
+
:key="i"
|
|
42
|
+
class="h-24 w-full"
|
|
43
|
+
/>
|
|
44
|
+
</template>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<ObserveVolumeChart
|
|
48
|
+
:buckets="data?.buckets ?? []"
|
|
49
|
+
:bucket-ms="data?.bucketMs ?? 1"
|
|
50
|
+
:pending="pending"
|
|
51
|
+
/>
|
|
52
|
+
|
|
53
|
+
<div class="grid grid-cols-1 xl:grid-cols-2 gap-6 items-start">
|
|
54
|
+
<ObserveErrorRateChart
|
|
55
|
+
:buckets="data?.buckets ?? []"
|
|
56
|
+
:bucket-ms="data?.bucketMs ?? 1"
|
|
57
|
+
:pending="pending"
|
|
58
|
+
/>
|
|
59
|
+
<ObserveServiceBreakdownChart
|
|
60
|
+
:buckets="data?.buckets ?? []"
|
|
61
|
+
:services="data?.services ?? []"
|
|
62
|
+
:bucket-ms="data?.bucketMs ?? 1"
|
|
63
|
+
:pending="pending"
|
|
64
|
+
/>
|
|
65
|
+
</div>
|
|
66
|
+
</template>
|
|
67
|
+
</div>
|
|
68
|
+
</template>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { useObserveOverview } from "../composables/useObserveOverview";
|
|
4
|
+
import { useObserveStats } from "../composables/useObserveStats";
|
|
5
|
+
const { data, pending, error } = useObserveOverview();
|
|
6
|
+
const { data: statsData, pending: statsPending } = useObserveStats();
|
|
7
|
+
const stats = computed(() => data.value?.stats);
|
|
8
|
+
const latestErrorDetail = computed(
|
|
9
|
+
() => data.value?.activity.find((item) => item.level === 0)
|
|
10
|
+
);
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<div class="space-y-6">
|
|
15
|
+
<UAlert
|
|
16
|
+
v-if="error"
|
|
17
|
+
color="error"
|
|
18
|
+
variant="subtle"
|
|
19
|
+
title="Failed to load overview"
|
|
20
|
+
:description="error.message"
|
|
21
|
+
/>
|
|
22
|
+
|
|
23
|
+
<template v-else>
|
|
24
|
+
<ObserveHealthHero
|
|
25
|
+
:stats="stats"
|
|
26
|
+
:period-label="data?.period.label"
|
|
27
|
+
:detail="latestErrorDetail"
|
|
28
|
+
/>
|
|
29
|
+
|
|
30
|
+
<UAlert
|
|
31
|
+
v-if="!pending && stats && stats.totalEvents === 0"
|
|
32
|
+
color="neutral"
|
|
33
|
+
variant="subtle"
|
|
34
|
+
icon="i-lucide-plug"
|
|
35
|
+
title="No events yet"
|
|
36
|
+
description="Point a frogger transport (or POST canonical batches) at /api/observe/ingest with a service API key to see data here."
|
|
37
|
+
/>
|
|
38
|
+
|
|
39
|
+
<template v-else>
|
|
40
|
+
<div class="grid grid-cols-1 xl:grid-cols-2 gap-6 items-start">
|
|
41
|
+
<ObserveVolumeChart
|
|
42
|
+
:buckets="statsData?.buckets ?? []"
|
|
43
|
+
:bucket-ms="statsData?.bucketMs ?? 1"
|
|
44
|
+
:pending="statsPending"
|
|
45
|
+
/>
|
|
46
|
+
<ObserveErrorRateChart
|
|
47
|
+
:buckets="statsData?.buckets ?? []"
|
|
48
|
+
:bucket-ms="statsData?.bucketMs ?? 1"
|
|
49
|
+
:pending="statsPending"
|
|
50
|
+
/>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<div class="grid grid-cols-1 xl:grid-cols-3 gap-6 items-start">
|
|
54
|
+
<ObserveServicesTable
|
|
55
|
+
class="xl:col-span-2"
|
|
56
|
+
:services="data?.services ?? []"
|
|
57
|
+
:active-services="stats?.activeServices"
|
|
58
|
+
:active-versions="stats?.activeVersions"
|
|
59
|
+
/>
|
|
60
|
+
<ObserveActivityFeed :items="data?.activity ?? []" />
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
</template>
|
|
64
|
+
</div>
|
|
65
|
+
</template>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { useRuntimeConfig } from "#imports";
|
|
4
|
+
import { useObserveRollout } from "../composables/useObserveRollout";
|
|
5
|
+
import { UNVERSIONED } from "../../shared/schema/rollout";
|
|
6
|
+
const { prefix } = useRuntimeConfig().public.observe;
|
|
7
|
+
const { versions, compare, regressions, hasService, pending, error } = useObserveRollout();
|
|
8
|
+
const compact = new Intl.NumberFormat("en", { notation: "compact", maximumFractionDigits: 1 });
|
|
9
|
+
const dateFmt = new Intl.DateTimeFormat("en", { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" });
|
|
10
|
+
const pct = (n) => `${(n * 100).toFixed(1)}%`;
|
|
11
|
+
const rows = computed(() => versions.value ?? []);
|
|
12
|
+
const hasRows = computed(() => rows.value.length > 0);
|
|
13
|
+
const unversionedOnly = computed(() => rows.value.length === 1 && rows.value[0].version === UNVERSIONED);
|
|
14
|
+
const totals = computed(() => {
|
|
15
|
+
const all = rows.value;
|
|
16
|
+
const count = all.reduce((s, v) => s + v.total, 0);
|
|
17
|
+
const errors = all.reduce((s, v) => s + v.errors, 0);
|
|
18
|
+
const versioned = all.filter((v) => v.version !== UNVERSIONED).length;
|
|
19
|
+
return { count, errors, errorRate: count ? errors / count : 0, versioned };
|
|
20
|
+
});
|
|
21
|
+
const tiles = computed(() => {
|
|
22
|
+
if (!hasRows.value) return [];
|
|
23
|
+
return [
|
|
24
|
+
{ label: "Versions", value: String(totals.value.versioned), icon: "i-lucide-git-branch" },
|
|
25
|
+
{ label: "Events", value: compact.format(totals.value.count), icon: "i-lucide-layers" },
|
|
26
|
+
{ label: "Errors", value: compact.format(totals.value.errors), icon: "i-lucide-circle-x" },
|
|
27
|
+
{ label: "Error rate", value: pct(totals.value.errorRate), icon: "i-lucide-activity" }
|
|
28
|
+
];
|
|
29
|
+
});
|
|
30
|
+
const trackingOff = computed(() => hasService.value && regressions.value?.trackingEnabled === false);
|
|
31
|
+
const findings = computed(() => regressions.value?.trackingEnabled ? regressions.value.findings : []);
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<template>
|
|
35
|
+
<div class="space-y-6">
|
|
36
|
+
<UAlert
|
|
37
|
+
v-if="error"
|
|
38
|
+
color="error"
|
|
39
|
+
variant="subtle"
|
|
40
|
+
title="Failed to load rollout"
|
|
41
|
+
:description="error.message"
|
|
42
|
+
/>
|
|
43
|
+
|
|
44
|
+
<template v-else>
|
|
45
|
+
<!-- KPI tiles over the window's version totals. -->
|
|
46
|
+
<div class="grid grid-cols-2 lg:grid-cols-4 gap-4">
|
|
47
|
+
<template v-if="tiles.length">
|
|
48
|
+
<ObserveStatCard
|
|
49
|
+
v-for="tile in tiles"
|
|
50
|
+
:key="tile.label"
|
|
51
|
+
v-bind="tile"
|
|
52
|
+
/>
|
|
53
|
+
</template>
|
|
54
|
+
<template v-else-if="pending">
|
|
55
|
+
<USkeleton
|
|
56
|
+
v-for="i in 4"
|
|
57
|
+
:key="i"
|
|
58
|
+
class="h-24 w-full"
|
|
59
|
+
/>
|
|
60
|
+
</template>
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
<!-- Regression panel: per-service only. -->
|
|
64
|
+
<template v-if="hasService">
|
|
65
|
+
<UAlert
|
|
66
|
+
v-if="trackingOff"
|
|
67
|
+
color="neutral"
|
|
68
|
+
variant="subtle"
|
|
69
|
+
icon="i-lucide-git-branch"
|
|
70
|
+
title="Version tracking is off for this service"
|
|
71
|
+
description="Enable it in Provisioning to detect rollout regressions."
|
|
72
|
+
:actions="[{ label: 'Open Provisioning', color: 'neutral', variant: 'subtle', to: `${prefix}/settings/services` }]"
|
|
73
|
+
/>
|
|
74
|
+
<div
|
|
75
|
+
v-else-if="findings.length"
|
|
76
|
+
class="space-y-3"
|
|
77
|
+
>
|
|
78
|
+
<ObserveRegressionAlert
|
|
79
|
+
v-for="(f, i) in findings"
|
|
80
|
+
:key="`${f.version}-${i}`"
|
|
81
|
+
:finding="f"
|
|
82
|
+
/>
|
|
83
|
+
</div>
|
|
84
|
+
<UAlert
|
|
85
|
+
v-else-if="regressions?.trackingEnabled"
|
|
86
|
+
color="success"
|
|
87
|
+
variant="subtle"
|
|
88
|
+
icon="i-lucide-check"
|
|
89
|
+
title="No regressions detected"
|
|
90
|
+
description="No newly-seen version's error rate has spiked over its baseline in this window."
|
|
91
|
+
/>
|
|
92
|
+
</template>
|
|
93
|
+
|
|
94
|
+
<!-- Empty / unversioned copy. -->
|
|
95
|
+
<UAlert
|
|
96
|
+
v-if="unversionedOnly"
|
|
97
|
+
color="neutral"
|
|
98
|
+
variant="subtle"
|
|
99
|
+
icon="i-lucide-info"
|
|
100
|
+
title="No versioned events in this window"
|
|
101
|
+
description="Set source.version (or the frogger batch app.version) per deploy so rollout can compare releases."
|
|
102
|
+
/>
|
|
103
|
+
<p
|
|
104
|
+
v-else-if="!hasRows && !pending"
|
|
105
|
+
class="text-sm text-muted"
|
|
106
|
+
>
|
|
107
|
+
No events in this window.
|
|
108
|
+
</p>
|
|
109
|
+
|
|
110
|
+
<!-- Charts. -->
|
|
111
|
+
<div
|
|
112
|
+
v-if="hasRows"
|
|
113
|
+
class="grid grid-cols-1 xl:grid-cols-2 gap-6 items-start"
|
|
114
|
+
>
|
|
115
|
+
<ObserveVersionAdoptionChart
|
|
116
|
+
:compare="compare"
|
|
117
|
+
:pending="pending"
|
|
118
|
+
/>
|
|
119
|
+
<ObserveVersionCompareChart
|
|
120
|
+
:compare="compare"
|
|
121
|
+
:pending="pending"
|
|
122
|
+
/>
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
<!-- Per-version summary table. -->
|
|
126
|
+
<section v-if="hasRows">
|
|
127
|
+
<h2 class="text-xs font-semibold uppercase tracking-wider text-muted mb-2">
|
|
128
|
+
Versions
|
|
129
|
+
</h2>
|
|
130
|
+
<UCard :ui="{ body: 'p-0 sm:p-0' }">
|
|
131
|
+
<table class="w-full text-sm">
|
|
132
|
+
<thead class="text-xs text-muted border-b border-default">
|
|
133
|
+
<tr>
|
|
134
|
+
<th class="text-left font-medium px-4 py-2">
|
|
135
|
+
Version
|
|
136
|
+
</th>
|
|
137
|
+
<th class="text-right font-medium px-4 py-2">
|
|
138
|
+
Events
|
|
139
|
+
</th>
|
|
140
|
+
<th class="text-right font-medium px-4 py-2">
|
|
141
|
+
Errors
|
|
142
|
+
</th>
|
|
143
|
+
<th class="text-right font-medium px-4 py-2">
|
|
144
|
+
Error rate
|
|
145
|
+
</th>
|
|
146
|
+
<th class="text-right font-medium px-4 py-2">
|
|
147
|
+
First seen
|
|
148
|
+
</th>
|
|
149
|
+
<th class="text-right font-medium px-4 py-2">
|
|
150
|
+
Last seen
|
|
151
|
+
</th>
|
|
152
|
+
</tr>
|
|
153
|
+
</thead>
|
|
154
|
+
<tbody>
|
|
155
|
+
<tr
|
|
156
|
+
v-for="v in rows"
|
|
157
|
+
:key="v.version"
|
|
158
|
+
class="border-b border-default last:border-0"
|
|
159
|
+
>
|
|
160
|
+
<td class="px-4 py-2 font-medium text-highlighted">
|
|
161
|
+
{{ v.version }}
|
|
162
|
+
</td>
|
|
163
|
+
<td class="px-4 py-2 text-right tabular-nums">
|
|
164
|
+
{{ compact.format(v.total) }}
|
|
165
|
+
</td>
|
|
166
|
+
<td class="px-4 py-2 text-right tabular-nums">
|
|
167
|
+
{{ compact.format(v.errors) }}
|
|
168
|
+
</td>
|
|
169
|
+
<td
|
|
170
|
+
class="px-4 py-2 text-right tabular-nums"
|
|
171
|
+
:class="{ 'text-error': v.errorRate > 0.1 }"
|
|
172
|
+
>
|
|
173
|
+
{{ pct(v.errorRate) }}
|
|
174
|
+
</td>
|
|
175
|
+
<td class="px-4 py-2 text-right text-muted whitespace-nowrap">
|
|
176
|
+
{{ dateFmt.format(v.firstSeen) }}
|
|
177
|
+
</td>
|
|
178
|
+
<td class="px-4 py-2 text-right text-muted whitespace-nowrap">
|
|
179
|
+
{{ dateFmt.format(v.lastSeen) }}
|
|
180
|
+
</td>
|
|
181
|
+
</tr>
|
|
182
|
+
</tbody>
|
|
183
|
+
</table>
|
|
184
|
+
</UCard>
|
|
185
|
+
</section>
|
|
186
|
+
</template>
|
|
187
|
+
</div>
|
|
188
|
+
</template>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|