From ff0845143b2434f2a293eafd68983e778981f944 Mon Sep 17 00:00:00 2001 From: Emanuele Rocco Petrone Date: Thu, 23 Sep 2021 16:00:54 +0200 Subject: [PATCH] add logpet as datasource --- datadog.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/datadog.go b/datadog.go index b332314..0bcfcc3 100644 --- a/datadog.go +++ b/datadog.go @@ -170,6 +170,8 @@ func (l *StandardLogger) startLogRoutineListener() { newLog.Level = logElem.Level newLog.Time = time.Now() + newLog.Data["ddsource"] = "logpet" + for key, value := range logElem.CustomFields { newLog.Data[key] = value }