From fa99795d0eb1ef6d920363e21477ad39b28bfb71 Mon Sep 17 00:00:00 2001 From: Meenal Mathur Date: Mon, 6 May 2024 10:27:57 +0530 Subject: [PATCH] Datadoglogs (#55) minor change --- receiver/datadoglogreceiver/receiver.go | 1 - receiver/datadoglogreceiver/translator.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/receiver/datadoglogreceiver/receiver.go b/receiver/datadoglogreceiver/receiver.go index 403b1a011aa6..783d2ef1da32 100644 --- a/receiver/datadoglogreceiver/receiver.go +++ b/receiver/datadoglogreceiver/receiver.go @@ -51,7 +51,6 @@ func newDataDogReceiver(config *Config, nextConsumer consumer.Logs, params recei func (ddr *datadogReceiver) Start(_ context.Context, host component.Host) error { ddmux := http.NewServeMux() - // ddmux.HandleFunc("/api/v0.2/traces", ddr.handleV2Traces) ddmux.HandleFunc("/api/v2/logs", ddr.handleLogs) var err error ddr.server, err = ddr.config.HTTPServerSettings.ToServer( diff --git a/receiver/datadoglogreceiver/translator.go b/receiver/datadoglogreceiver/translator.go index f2f176787322..c50e55cb750f 100644 --- a/receiver/datadoglogreceiver/translator.go +++ b/receiver/datadoglogreceiver/translator.go @@ -96,7 +96,7 @@ func setResourceAttributes(attributes pcommon.Map, attributes.PutStr("host.id", cra.host) } if cra.mwSource != "" { - attributes.PutStr("source.", cra.mwSource) + attributes.PutStr("source", cra.mwSource) } }