Updated project files and configuration
- 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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user