Skip to content

Commit 4857a86

Browse files
authored
fix(otel): ignore empty offcpu profile (#3862)
1 parent f20572a commit 4857a86

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎pkg/ingester/otlp/ingest_handler.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ func (h *ingestHandler) Export(ctx context.Context, er *pprofileotlp.ExportProfi
130130
}
131131
req.Series = append(req.Series, s)
132132
}
133+
if len(req.Series) == 0 {
134+
continue
135+
}
133136
_, err := h.svc.PushParsed(ctx, req)
134137
if err != nil {
135138
h.log.Log("msg", "failed to push profile", "err", err)

0 commit comments

Comments
 (0)