From 280fbdda84f7aac7becc05a4d69d9631f4c1c3af Mon Sep 17 00:00:00 2001 From: Marek Goc Date: Thu, 14 Nov 2024 17:37:25 +0100 Subject: [PATCH] fix tag name to be included --- pkg/exporters/gelf_exporter/gelf.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/exporters/gelf_exporter/gelf.go b/pkg/exporters/gelf_exporter/gelf.go index 17f2143..d12cc5e 100644 --- a/pkg/exporters/gelf_exporter/gelf.go +++ b/pkg/exporters/gelf_exporter/gelf.go @@ -23,8 +23,6 @@ type GELFMessage struct { // All additional field names must start with an underline. ExtraFields map[string]interface{} `json:"extrafields,omitempty"` - - Tag string `json:"tag,omitempty"` } func Log(writer *gelf.UDPWriter, msg GELFMessage) { @@ -40,7 +38,6 @@ func Log(writer *gelf.UDPWriter, msg GELFMessage) { func (g GELFMessage) GELFFormat() *gelf.Message { prefixedExtras := make(map[string]interface{}, len(g.ExtraFields)) - prefixedExtras["tag"] = g.Tag for k, v := range g.ExtraFields { prefixedExtras["_"+k] = v }