Skip to content

Commit

Permalink
[chore] [exporter/logzio] preallocate slice (#24938)
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme authored Aug 7, 2023
1 parent 89a6aaf commit 6ccfaf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exporter/logzioexporter/logziospan.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ type logzioSpan struct {
}

func getTagsValues(tags []model.KeyValue) []string {
var values []string
values := make([]string, len(tags))
for i := range tags {
values = append(values, tags[i].VStr)
values[i] = tags[i].VStr
}
return values
}
Expand Down

0 comments on commit 6ccfaf1

Please sign in to comment.