Skip to content

Commit

Permalink
Datadoglogs (#55)
Browse files Browse the repository at this point in the history
minor change
  • Loading branch information
meenal-developer authored and bhogayatakb committed Jun 12, 2024
1 parent 1d0c1f9 commit a4aa602
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion receiver/datadoglogreceiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion receiver/datadoglogreceiver/translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit a4aa602

Please sign in to comment.