Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Smoke-test the /status and /metrics endpoints on a deployed boilerplate.
|
||||
# Smoke-test the /status and /metrics endpoints on a deployed HiveGrid stack.
|
||||
#
|
||||
# Usage:
|
||||
# METRICS_TOKEN=... scripts/observability/smoke-metrics.sh # uses staging defaults
|
||||
@@ -11,9 +11,9 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
API_BASE="${1:-https://api.boiler.saas-ctrl.com}"
|
||||
API_BASE="${1:-https://api.hivegrid.de}"
|
||||
WORKER_BASE="${2:-}"
|
||||
WEB_BASE="${3:-https://app.boiler.saas-ctrl.com}"
|
||||
WEB_BASE="${3:-https://app.hivegrid.de}"
|
||||
|
||||
if [ -z "${METRICS_TOKEN:-}" ]; then
|
||||
echo "FAIL: METRICS_TOKEN env var is required." >&2
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* Exits 0 on 2xx response, 1 on non-2xx, 2 on missing endpoint config.
|
||||
*
|
||||
* @see docs/improvement-plan/02-observability/opentelemetry.md (Step 10)
|
||||
* @see docs/observability/metrics.md
|
||||
*/
|
||||
import { randomBytes } from "node:crypto";
|
||||
|
||||
@@ -54,7 +54,7 @@ function buildSpans(): SmokeSpan[] {
|
||||
startTimeUnixNano: String(BigInt(start) * 1_000_000n),
|
||||
endTimeUnixNano: String(BigInt(start + 800) * 1_000_000n),
|
||||
attributes: [
|
||||
{ key: "service.name", value: { stringValue: "boilerplate-smoke" } },
|
||||
{ key: "service.name", value: { stringValue: "hivegrid-smoke" } },
|
||||
{ key: "smoke.kind", value: { stringValue: "root" } },
|
||||
],
|
||||
},
|
||||
@@ -67,7 +67,7 @@ function buildSpans(): SmokeSpan[] {
|
||||
startTimeUnixNano: String(BigInt(start + 100) * 1_000_000n),
|
||||
endTimeUnixNano: String(BigInt(start + 500) * 1_000_000n),
|
||||
attributes: [
|
||||
{ key: "service.name", value: { stringValue: "boilerplate-smoke-api" } },
|
||||
{ key: "service.name", value: { stringValue: "hivegrid-smoke-api" } },
|
||||
{ key: "http.method", value: { stringValue: "GET" } },
|
||||
{ key: "http.target", value: { stringValue: "/healthz" } },
|
||||
],
|
||||
@@ -81,7 +81,7 @@ function buildSpans(): SmokeSpan[] {
|
||||
startTimeUnixNano: String(BigInt(start + 250) * 1_000_000n),
|
||||
endTimeUnixNano: String(BigInt(start + 600) * 1_000_000n),
|
||||
attributes: [
|
||||
{ key: "service.name", value: { stringValue: "boilerplate-smoke-worker" } },
|
||||
{ key: "service.name", value: { stringValue: "hivegrid-smoke-worker" } },
|
||||
{ key: "messaging.system", value: { stringValue: "bullmq" } },
|
||||
{ key: "messaging.destination", value: { stringValue: "smoke.queue" } },
|
||||
],
|
||||
@@ -124,8 +124,8 @@ async function main(): Promise<void> {
|
||||
{
|
||||
resource: {
|
||||
attributes: [
|
||||
{ key: "service.name", value: { stringValue: "boilerplate-smoke" } },
|
||||
{ key: "service.namespace", value: { stringValue: "toolctrl" } },
|
||||
{ key: "service.name", value: { stringValue: "hivegrid-smoke" } },
|
||||
{ key: "service.namespace", value: { stringValue: "hivegrid" } },
|
||||
],
|
||||
},
|
||||
scopeSpans: [
|
||||
|
||||
Reference in new issue
Block a user