Skip to content

Commit

Permalink
Do not initialize item array with span size
Browse files Browse the repository at this point in the history
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
  • Loading branch information
pavolloffay committed Sep 2, 2020
1 parent 576110f commit 1b0d768
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (w *esSpanWriter) WriteTraces(ctx context.Context, traces pdata.Traces) (in
func (w *esSpanWriter) writeSpans(ctx context.Context, spans []*dbmodel.Span) (int, error) {
buffer := &bytes.Buffer{}
// mapping for bulk operation to span
bulkOperations := make([]bulkItem, len(spans))
var bulkOperations []bulkItem
var errs []error
dropped := 0
for _, span := range spans {
Expand Down

0 comments on commit 1b0d768

Please sign in to comment.