Skip to content

Commit eb39fb1

Browse files
committed
close off span correctly
1 parent 00cf0b6 commit eb39fb1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

executor/lua_executor.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ func (*LuaExecutor) executeRawMessage(ctx context.Context, fields log.Fields, L
342342

343343
log.WithFields(fields).Debug("Script did not return a string")
344344
}
345+
span.SetAttributes(attribute.Int("response.size", len(res.Payload)))
346+
span.SetStatus(codes.Ok, "Raw message executed")
345347

346348
return res
347349
}

0 commit comments

Comments
 (0)