Skip to content

Commit 23cd15a

Browse files
paulojmdiastommyers-elastic
authored andcommitted
[chore][exporter/logzioexporter] run make modernize (open-telemetry#43254)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Run the `make modernize` tool. https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize Signed-off-by: Paulo Dias <[email protected]>
1 parent 97256f5 commit 23cd15a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exporter/logzioexporter/exporter_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ func testLogsExporter(t *testing.T, ld plog.Logs, cfg *Config) error {
111111
// Traces
112112
func newTestTracesWithAttributes() ptrace.Traces {
113113
td := ptrace.NewTraces()
114-
for i := 0; i < 10; i++ {
114+
for i := range 10 {
115115
s := td.ResourceSpans().AppendEmpty().ScopeSpans().AppendEmpty().Spans().AppendEmpty()
116116
s.SetName(fmt.Sprintf("%s-%d", testOperation, i))
117117
s.SetTraceID(pcommon.TraceID([16]byte{byte(i), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}))
118118
s.SetSpanID(pcommon.SpanID([8]byte{byte(i), 0, 0, 0, 0, 0, 0, 2}))
119-
for j := 0; j < 5; j++ {
119+
for j := range 5 {
120120
s.Attributes().PutStr(fmt.Sprintf("k%d", j), fmt.Sprintf("v%d", j))
121121
}
122122
s.SetKind(ptrace.SpanKindServer)

0 commit comments

Comments
 (0)