discovery service

This commit is contained in:
Stephan D
2026-01-02 02:44:01 +01:00
parent 97ba7500dc
commit ea1c69f14a
47 changed files with 2799 additions and 701 deletions

View File

@@ -7,6 +7,7 @@ import (
"os/signal"
"syscall"
"github.com/tech/sendico/pkg/discovery"
"github.com/tech/sendico/pkg/mlogger"
lf "github.com/tech/sendico/pkg/mlogger/factory"
"github.com/tech/sendico/pkg/server"
@@ -28,6 +29,7 @@ func prepareLogger() mlogger.Logger {
func RunServer(rootLoggerName string, av version.Printer, factory server.ServerFactoryT) {
logger := prepareLogger().Named(rootLoggerName)
logger = logger.With(zap.String("instance_id", discovery.InstanceID()))
defer logger.Sync()
// Show version information