Skip to content

Commit

Permalink
fix: httplogreceiver use logs obsreport instead of metrics (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
nityanandagohain committed May 22, 2024
1 parent 453a1a9 commit 3fca134
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions receiver/httplogreceiver/httplogreceiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func (r *httplogreceiver) Shutdown(context.Context) error {
}

func (r *httplogreceiver) handleLogs(w http.ResponseWriter, req *http.Request) {
ctx := r.obsrecv.StartMetricsOp(req.Context())
ctx := r.obsrecv.StartLogsOp(req.Context())

// return this header if present. This is done to support vercel.
if req.Header.Get("x-vercel-verify") != "" {
Expand Down Expand Up @@ -195,7 +195,7 @@ func (r *httplogreceiver) handleLogs(w http.ResponseWriter, req *http.Request) {
return
}

r.obsrecv.EndMetricsOp(
r.obsrecv.EndLogsOp(
ctx,
metadata.Type,
totalCount,
Expand Down

0 comments on commit 3fca134

Please sign in to comment.