feat: foundation — Docker Compose, OTEL, shared types #65

Merged
jason.woltje merged 1 commits from feat/foundation-p0 into main 2026-03-13 01:55:33 +00:00
Owner

Summary

  • P0-005: Docker Compose with PG 17+pgvector, Valkey 8, OTEL Collector, Jaeger
  • P0-006: OpenTelemetry SDK auto-instrumentation in gateway, OTLP export
  • P0-002: @mosaic/types with ChatMessageDto, Socket.IO typed event maps, AgentSessionHandle

Test plan

  • docker compose up — PG, Valkey, Collector, Jaeger all healthy
  • Gateway boots with tracing enabled
  • Jaeger UI at :16686 shows gateway traces
  • pnpm typecheck && pnpm lint && pnpm format:check — all green

Generated with Claude Code

## Summary - **P0-005**: Docker Compose with PG 17+pgvector, Valkey 8, OTEL Collector, Jaeger - **P0-006**: OpenTelemetry SDK auto-instrumentation in gateway, OTLP export - **P0-002**: @mosaic/types with ChatMessageDto, Socket.IO typed event maps, AgentSessionHandle ## Test plan - [ ] `docker compose up` — PG, Valkey, Collector, Jaeger all healthy - [ ] Gateway boots with tracing enabled - [ ] Jaeger UI at :16686 shows gateway traces - [ ] `pnpm typecheck && pnpm lint && pnpm format:check` — all green Generated with [Claude Code](https://claude.com/claude-code)
jason.woltje added 1 commit 2026-03-13 01:55:32 +00:00
Docker Compose (P0-005):
- PG 17 + pgvector, Valkey 8, OTEL Collector, Jaeger
- OTEL Collector config with trace/metric/log pipelines
- .env.example with all connection strings

OTEL Foundation (P0-006):
- @opentelemetry/sdk-node with auto-instrumentations
- tracing.ts loaded before NestJS bootstrap
- OTLP HTTP exporter → collector → Jaeger
- Disabled fs/dns instrumentations (noisy)

Shared Types (P0-002):
- ChatMessageDto with class-validator (IsUUID, IsNotEmpty, MaxLength)
- ChatResponseDto for REST responses
- Socket.IO typed event maps (ServerToClientEvents, ClientToServerEvents)
- AgentSessionHandle opaque type
- All event payload interfaces shared across gateway/cli/discord

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jason.woltje merged commit 35e4e2e527 into main 2026-03-13 01:55:33 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#65