Skip to content

Add opt-in native dev observability - #85

Open
jsturtevant wants to merge 4 commits into
observability/scale-frameworkfrom
observability/local-dev-observability
Open

jsturtevant wants to merge 4 commits into
observability/scale-frameworkfrom
observability/local-dev-observability

Conversation

@jsturtevant

@jsturtevant jsturtevant commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Make native development telemetry usable without Kubernetes. ly dev --observability starts local Prometheus and Jaeger and adds their links to the existing service index. Application routes and --metrics text output stay independent.

Real native workspace requests produced metrics and traces for all three services. Cancellation and failed startup removed only their session resources, including when Jaeger was unavailable.

Supports #12 and builds on #71.

@jsturtevant
jsturtevant force-pushed the observability/local-dev-observability branch 2 times, most recently from ee7aa1b to 776dd23 Compare November 21, 2026 00:14
@jsturtevant
jsturtevant marked this pull request as ready for review November 21, 2026 00:14
@jsturtevant
jsturtevant added this pull request to stack #74 November 21, 2026 00:15
@jsturtevant
jsturtevant force-pushed the observability/local-dev-observability branch from 776dd23 to c4d08d8 Compare November 21, 2026 00:26
Copilot AI balanced review requested due to automatic review settings November 21, 2026 00:26
@jsturtevant
jsturtevant force-pushed the observability/local-dev-observability branch from c4d08d8 to 1c77063 Compare November 21, 2026 00:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Active issues leave incoming trace context unpropagated through native request dispatch and cause observability startup to fail when workspace paths contain commas.

2 open issues
What changed in this PR

Adds opt-in Prometheus and Jaeger support to native development, extending Lampyr’s observability beyond Kubernetes while keeping application routes and --metrics output independent.

Changes:

  • Adds ly dev --observability, passes it to the native supervisor, and updates the supervisor protocol.
  • Manages session-scoped telemetry backends and exposes their links on the service index.
  • Extends shutdown grace for telemetry cleanup and adds tests and usage documentation.
File Description
internal/​fiberdintegration/​local.go Integrates observability startup, cleanup, and service-index links.
internal/​fiberdintegration/​local_observability.go Manages telemetry containers, authenticated scraping, and trace export.
internal/​fiberdintegration/​local_observability_test.go Tests routing isolation, authentication, startup failures, and cleanup.
docs/​cli/​dev.md Documents local observability usage and requirements.
cmd/​ly-dev/​main.go Updates the supervisor protocol version.
cli/​tests/​tools.rs Tests the extended cancellation grace period.
cli/​tests/​dev.rs Checks help output for both telemetry flags.
cli/​src/​tools.rs Supports configurable interactive shutdown grace.
cli/​src/​main.rs Adds and forwards the observability flag.
cli/​src/​host.rs Exposes configurable shutdown grace to callers.
cli/​src/​dev.rs Updates the local plan and allows extra telemetry cleanup time.

Review effort: Balanced

Comment thread internal/fiberdintegration/local.go Resolved
Copilot AI balanced review requested due to automatic review settings November 21, 2026 00:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Unescaped commas in bind-mount source paths can prevent observability startup, and native service forwarding lacks inbound HTTP tracing needed to preserve request trace continuity.

2 open issues

Review effort: Balanced

@jsturtevant
jsturtevant force-pushed the observability/local-dev-observability branch from 1c77063 to 69a6a8d Compare November 21, 2026 01:05
Copilot AI balanced review requested due to automatic review settings November 21, 2026 01:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Observability startup can fail with incompatible Docker logging drivers or comma-containing workspace paths, and missing native HTTP instrumentation prevents request spans from sharing a trace.

3 open issues

Review effort: Balanced

@jsturtevant
jsturtevant force-pushed the observability/local-dev-observability branch from 69a6a8d to f288178 Compare November 21, 2026 01:31
Copilot AI balanced review requested due to automatic review settings November 21, 2026 01:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Native request handlers lack server tracing instrumentation, breaking trace continuity, while Prometheus’s default compaction allocation exceeds the configured tmpfs capacity and causes ENOSPC failures.

4 open issues

Review effort: Balanced

@jsturtevant
jsturtevant force-pushed the observability/local-dev-observability branch from f288178 to 2736a8f Compare November 24, 2026 22:35
Copilot AI balanced review requested due to automatic review settings November 24, 2026 22:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Native request handlers lack server-side tracing needed to preserve incoming trace continuity, and unescaped Docker mount sources cause observability startup to fail for workspace paths containing commas.

4 open issues

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 25, 2026 02:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Unresolved Docker mount and logging-driver issues can prevent observability startup, Prometheus segment allocation exceeds its storage budget, and missing server instrumentation breaks incoming trace continuity.

4 open issues

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 25, 2026 02:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The CLI documentation overstates trace continuity because the demo does not forward traceparent on binding requests and should clarify that applications must propagate it.

1 open issue
4 resolved since last review

Review effort: Balanced

Comment thread docs/cli/dev.md Resolved
@jsturtevant
jsturtevant force-pushed the observability/local-dev-observability branch from 8d35910 to 906bf3d Compare November 25, 2026 03:08
Copilot AI balanced review requested due to automatic review settings November 25, 2026 03:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the opt-in native-development observability changes.

1 open issue

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 25, 2026 03:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The review identifies no active issues with the opt-in native-development observability changes.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@jsturtevant
jsturtevant force-pushed the observability/local-dev-observability branch from 564daf9 to f841340 Compare November 25, 2026 21:42
Copilot AI balanced review requested due to automatic review settings November 25, 2026 21:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the opt-in observability changes to native ly dev.

No open issues 🎉

Review effort: Balanced

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Reproduce local observability tracing and container regressions

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Preserve inbound traces and bound local telemetry container behavior

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Qualify cross-service trace propagation requirements in native dev docs

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
@jsturtevant
jsturtevant force-pushed the observability/local-dev-observability branch from f841340 to 1ec3787 Compare November 25, 2026 22:27
Copilot AI balanced review requested due to automatic review settings November 25, 2026 22:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the opt-in native-development observability changes.

No open issues 🎉

Review effort: Balanced

This branch has not been deployed

No deployments
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.

2 participants