Repository navigation
Add opt-in native dev observability - #85
jsturtevant wants to merge 4 commits into
Conversation
ee7aa1b to
776dd23
Compare
776dd23 to
c4d08d8
Compare
c4d08d8 to
1c77063
Compare
There was a problem hiding this comment.
🟡 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
1c77063 to
69a6a8d
Compare
69a6a8d to
f288178
Compare
There was a problem hiding this comment.
🟡 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
f288178 to
2736a8f
Compare
There was a problem hiding this comment.
🔵 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
There was a problem hiding this comment.
🔵 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
There was a problem hiding this comment.
🟡 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
8d35910 to
906bf3d
Compare
564daf9 to
f841340
Compare
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>
f841340 to
1ec3787
Compare


Make native development telemetry usable without Kubernetes.
ly dev --observabilitystarts local Prometheus and Jaeger and adds their links to the existing service index. Application routes and--metricstext 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.