Updated project files and configuration
Some checks failed
WHOOSH CI / speclint (push) Has been cancelled
WHOOSH CI / contracts (push) Has been cancelled

- Added/updated .gitignore file
- Fixed remote URL configuration
- Updated project structure and files

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude Code
2025-09-17 22:51:50 +10:00
parent e5555ae277
commit afccc94998
19 changed files with 3376 additions and 2352 deletions

View File

@@ -14,6 +14,7 @@ import (
"github.com/chorus-services/whoosh/internal/config"
"github.com/chorus-services/whoosh/internal/database"
"github.com/chorus-services/whoosh/internal/server"
"github.com/chorus-services/whoosh/internal/tracing"
"github.com/kelseyhightower/envconfig"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
@@ -115,6 +116,21 @@ func main() {
log.Info().Msg("✅ Database migrations completed")
}
// Initialize tracing
tracingCleanup, err := tracing.Initialize(cfg.OpenTelemetry)
if err != nil {
log.Fatal().Err(err).Msg("Failed to initialize tracing")
}
defer tracingCleanup()
if cfg.OpenTelemetry.Enabled {
log.Info().
Str("jaeger_endpoint", cfg.OpenTelemetry.JaegerEndpoint).
Msg("🔍 OpenTelemetry tracing enabled")
} else {
log.Info().Msg("🔍 OpenTelemetry tracing disabled (no-op tracer)")
}
// Set version for server
server.SetVersion(version)