Skip to content

Commit 9f46a5a

Browse files
committed
update
1 parent 6bb0d6b commit 9f46a5a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

exporters/otlp/otlplog/otlploggrpc/client.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ func (c *client) UploadLogs(ctx context.Context, rl []*logpb.ResourceLogs) (uplo
141141
count := int64(len(rl))
142142
if c.instrumentation != nil {
143143
eo := c.instrumentation.ExportLogs(ctx, count)
144-
defer func() {
145-
eo.End(uploadErr)
146-
}()
144+
defer eo.End(uploadErr)
147145
}
148146

149147
return errors.Join(uploadErr, c.requestFunc(ctx, func(ctx context.Context) error {

0 commit comments

Comments
 (0)