kavoru 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/features.ts +8 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kavoru",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Scaffold a new Kavoru (Elysia + Bun) backend from the official template",
5
5
  "type": "module",
6
6
  "bin": {
package/src/features.ts CHANGED
@@ -108,7 +108,7 @@ const FEATURE_PATHS: Record<FeatureId, string[]> = {
108
108
  ],
109
109
  resend: ["src/infra/resend"],
110
110
  cron: ["src/schedules"],
111
- docker: ["Dockerfile", "docker-compose.yaml"],
111
+ docker: ["Dockerfile", "docker-compose.yaml", "docker/otel.Dockerfile"],
112
112
  };
113
113
 
114
114
  const FEATURE_DEPENDENCIES: Partial<
@@ -523,7 +523,7 @@ function buildAppEnvironment(selection: FeatureSelection): string {
523
523
  lines.push(" KAFKA_BROKERS: kafka:9092");
524
524
  }
525
525
  if (selection.otel) {
526
- lines.push(" OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318/v1/traces");
526
+ lines.push(" OTEL_EXPORTER_OTLP_ENDPOINT: http://otel:4318/v1/traces");
527
527
  lines.push(" OTEL_SERVICE_NAME: ${OTEL_SERVICE_NAME:-kavoru}");
528
528
  }
529
529
  if (selection.sentry) {
@@ -568,15 +568,14 @@ function generateDockerCompose(selection: FeatureSelection): string {
568
568
  `
569
569
  : "";
570
570
 
571
- const jaegerService = selection.otel
571
+ const otelService = selection.otel
572
572
  ? `
573
- jaeger:
574
- image: jaegertracing/all-in-one:1.62.0
573
+ otel:
574
+ build:
575
+ context: .
576
+ dockerfile: docker/otel.Dockerfile
575
577
  ports:
576
- - "16686:16686"
577
578
  - "4318:4318"
578
- environment:
579
- COLLECTOR_OTLP_ENABLED: "true"
580
579
  networks:
581
580
  - app_network
582
581
  restart: unless-stopped
@@ -622,7 +621,7 @@ ${appDependsOn}${appEnvironment} healthcheck:
622
621
  timeout: 300s
623
622
  retries: 1
624
623
  start_period: 40s
625
- ${kafkaService}${jaegerService}${spotlightService}
624
+ ${kafkaService}${otelService}${spotlightService}
626
625
  networks:
627
626
  app_network:
628
627
  driver: bridge