Trace back everything (tested)

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-01-21 19:19:17 +08:00
parent 3f44d2d9c2
commit 5f6eb9f2a2
16 changed files with 229 additions and 84 deletions

View File

@@ -12,9 +12,9 @@ import (
)
func main() {
logger.Init()
config.Init()
// OTEL
ctx := context.Background()
shutdown := tracer.Init(ctx)
defer func() {
@@ -25,6 +25,7 @@ func main() {
}
}()
data.Init()
server.Start()
logger.Init()
data.Init(ctx)
server.Start(ctx)
}