feat: add X-Instance-Id header and instance_id log field
This commit is contained in:
+2
-1
@@ -27,7 +27,7 @@ func Run() error {
|
||||
|
||||
cfg := config.Load()
|
||||
|
||||
log := logger.New(cfg.Logging.Level)
|
||||
log := logger.New(cfg.Logging.Level).With("instance_id", cfg.Server.InstanceID)
|
||||
|
||||
dbURL, err := cfg.Database.URL()
|
||||
if err != nil {
|
||||
@@ -80,6 +80,7 @@ func Run() error {
|
||||
|
||||
router := NewRouter(
|
||||
log,
|
||||
cfg.Server.InstanceID,
|
||||
cfg.Server.MaxInflightRequests,
|
||||
pool,
|
||||
authService,
|
||||
|
||||
Reference in New Issue
Block a user