Skip to content

[bb-dashboard + 3 more] Organize the Dashboard by compute (finalize-deferred) - #505

Closed
Simone319 wants to merge 1 commit into
zimzha/compute-observability-logging-tracingfrom
zimzha/compute-observability-dashboard
Closed

[bb-dashboard + 3 more] Organize the Dashboard by compute (finalize-deferred)#505
Simone319 wants to merge 1 commit into
zimzha/compute-observability-logging-tracingfrom
zimzha/compute-observability-dashboard

Conversation

@Simone319

@Simone319 Simone319 commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Part 2 of 2 — the per-compute Dashboard, stacked on #504. Split out of #462.

What

  • Compute.dashboardSection(region) + presence flags (loggerEnabled/tracerEnabled) + protected healthWidgets/loggingWidgets/tracingWidgets abstracts; LambdaCompute implements them.
  • The Dashboard renders a compute-scoped section (health always; logs/traces when a Logger/Tracer is attached) instead of taking logger/tracer options. Metrics stay app-scoped via MetricsSource (now re-exported from @aws-blocks/blocks). LoggerBBRef/TracerBBRef are @deprecated.
  • finalizeDashboards: a new registerFinalizer / runFinalizers core seam, run at the end of BlocksStack/BlocksBackend.create(). The Dashboard builds its widget body in a finalizer so it observes every Logger/Tracer regardless of construction order — a Dashboard created before its Loggers still renders their sections.

Breaking (Dashboard)

logger / tracer options removed (attaching the BB is the signal); metricConfigs moves inside the metrics source. Migration is in the changeset.

Stack

Test

build, biome check, lint:deps, check:api, and unit tests (bb-dashboard incl. a Dashboard-before-Logger order-independence synth test, bb-lambda-compute, core targeted) pass on Node 22.

@changeset-bot

changeset-bot Bot commented Sep 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d4971fd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@aws-blocks/core Patch
@aws-blocks/bb-lambda-compute Patch
@aws-blocks/bb-dashboard Minor
@aws-blocks/blocks Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Simone319 Simone319 changed the title zimzha/compute observability dashboard [bb-dashboard + 3 more] Organize the Dashboard by compute (finalize-deferred) Sep 7, 2026
Compute gains dashboardSection(region) + presence flags (loggerEnabled/
tracerEnabled) + protected healthWidgets/loggingWidgets/tracingWidgets abstracts;
LambdaCompute implements them. The Dashboard renders a compute-scoped section
(health always; logs/traces when a Logger/Tracer is attached) instead of taking
logger/tracer options. Metrics stay app-scoped via MetricsSource. MetricsSource
is re-exported from @aws-blocks/blocks; LoggerBBRef/TracerBBRef deprecated.

The Dashboard builds its widget body via a Dashboard-specific core seam
(registerDashboardFinalizer / finalizeDashboards, run at the end of create())
rather than in its constructor, so it observes every Logger/Tracer regardless of
construction order. Kept Dashboard-specific (not a generic finalizer registry)
since it is the only deferred-build case today.
@Simone319
Simone319 force-pushed the zimzha/compute-observability-dashboard branch from ee5da28 to d4971fd Compare September 7, 2026 16:39
@Simone319 Simone319 closed this Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant