add signoz

This commit is contained in:
trunglt251292 2023-11-24 10:01:58 +07:00
parent 53a1c17064
commit 3f21455e3b
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ var (
// Init ... // Init ...
func Init(appName, server string) { func Init(appName, server string) {
cfg := zap.Config{ cfg := zap.Config{
Encoding: "console", Encoding: "json",
Level: zap.NewAtomicLevelAt(zapcore.DebugLevel), Level: zap.NewAtomicLevelAt(zapcore.DebugLevel),
OutputPaths: []string{"stdout"}, OutputPaths: []string{"stdout"},
InitialFields: map[string]interface{}{"server": server, "capture": appName}, InitialFields: map[string]interface{}{"server": server, "capture": appName},